Perl 6 - the future is here, just unevenly distributed

IRC log for #6macros, 2016-06-21

| Channels | #6macros index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:16 raiph joined #6macros
01:18 raiph .tell cognominal I've posted some questions about your slang proposal at https://gist.github.com/cognominal​/d181082b41595d6f41588faf6d51a42d
01:49 ilbot3 joined #6macros
03:13 raiph left #6macros
07:34 pdcawley joined #6macros
08:34 cognominal joined #6macros
15:00 pdcawley joined #6macros
16:01 cognominal joined #6macros
18:09 vendethiel http://irclog.perlgeek.de/6m​acros/2016-06-17#i_12683780
18:09 vendethiel it's certainly scary. Maybe grammars need some kind of cleanup phase? RAII style things?
18:09 vendethiel FWIW, I miss that in pretty much any language that doesn't have it...
18:10 vendethiel (and timely destruction doesn't happen often)
18:10 vendethiel http://irclog.perlgeek.de/6m​acros/2016-06-14#i_12663974
18:10 vendethiel I don't know. I don't think it matters much? and to be fair, `sub infix:<in>($a, $b) { $b.__contains__($a); }`
18:11 vendethiel http://irclog.perlgeek.de/6m​acros/2016-06-14#i_12664170 I don't understand how it's meta?
18:57 FROGGS joined #6macros
19:27 pdcawley_ joined #6macros
20:02 masak vendethiel: I guess your point is that a __contains__ method (or its moral equivalent) needs to be present in order for userland containers to declare how they `in`? kind of like the relationship between .ACCEPTS and `~~` in Perl 6.
20:38 cognominal joined #6macros
20:39 masak vendethiel: re "meta" -- I guess I meant something like "the `.has` method hasn't been put there by the user, but rather by the object system. where normal methods would talk about the object's contents, this method concerns itself with the object's shape"
20:43 masak Python has a nearly ridiculous amount of dunder methods.
21:17 vendethiel masak: yeah, for me in is like ~~ (in that it requires a method like in Perl 6 etc)
21:22 masak for the bootstrapping of 007, I don't see that a method would be necessary. I mean, one could just define infix:<in> (in the guest 007) in terms of infix:<in> (in the host 007)
21:22 masak but for language extensibility and user-defined types, I guess there has to be some way

| Channels | #6macros index | Today | | Search | Google Search | Plain-Text | summary