6macros: discussing the finer points of Perl 6 macros, Qtrees, and how to stay sane | irclog: irclog.perlgeek.de/6macros/today
Set by moderator on 28 July 2015.
01:48 ilbot3 joined 05:55 FROGGS joined 06:27 FROGGS joined 06:32 FROGGS_ joined 07:13 FROGGS joined 07:20 FROGGS_ joined 09:26 Ven joined
Ven masak: I keep your question in the back of my mind. But I need to think a bit more before answering – (note: the "things we can get freely from lisp" question) 09:32
09:35 cognominal joined 10:11 cognominal joined 11:49 cognominal joined 12:42 cognominal joined 14:43 cognominal joined 14:59 FROGGS joined 15:39 FROGGS joined 15:49 cognominal joined 16:00 FROGGS joined
masak Ven: 's alright 16:20
it's a big question
question for the language feature peanut gallery: `if obj.has("myprop")` or `if "myprop" in obj` ? 16:30
the former is currently implemented in 007. the latter is from Python, and in Python it works on objects, arrays, sets, ranges... 16:31
you can even use it for substrings 16:32
masak just realized that if we were to go with `in`, the opposite would be `!in` in 007, not `not in` as in Python :) 16:33
I just checked: `rhs `lhs in rhs` translates to `rhs.__contains__(lhs)` in Python 17:03
what are the pros and cons of using dunder-method syntax, would you say? I mean, it's currently `rhs.has(lhs)` in 007, which technically means we're mixing a "meta" method with the normal methods 17:04
how bad is that? 17:05
18:18 vendethiel joined 19:25 FROGGS joined 20:43 cognominal joined 21:29 cognominal joined 23:59 cognominal joined