Perl 6 - the future is here, just unevenly distributed

IRC log for #6macros, 2015-07-17

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

All times shown according to UTC.

Time Nick Message
01:04 vendethiel joined #6macros
01:48 ilbot3 joined #6macros
01:48 Topic for #6macros is now 6macros: discussing the finer points of Perl 6 macros, Qtrees, and how to stay sane | irclog: irclog.perlgeek.de/6macros/today
05:29 ilbot3 joined #6macros
05:29 Topic for #6macros is now 6macros: discussing the finer points of Perl 6 macros, Qtrees, and how to stay sane | irclog: irclog.perlgeek.de/6macros/today
09:22 vendethiel joined #6macros
12:28 masak here's an idea.
12:29 masak I'd like kind of a MOP, but for the mainline lexical scope (and maybe other features of the mainline, too).
12:29 masak something like `$mainline.declare-var('$x', Int);`
12:30 masak some of those things are purely declarative, and it doesn't make so much sense to go through a Qtree to generate that declarative effect.
12:31 vendethiel "declare-var" would be on block?
12:32 masak I suspect it wouldn't be so direct.
12:32 masak because Block is available in userland, and you can't do that during runtime.
12:32 masak so it'd be more on a kind of "meta-object" representing the block.
12:33 masak kind of like .^add_method on ClassHOW
12:38 vendethiel mmmmh
12:38 vendethiel more action-at-a-distance? somewhat
12:41 masak this is what macros do. they have an effect on the place where they're injected.
12:41 masak if you don't want that, consider using a function.
12:45 vendethiel on the place they're injected, yes
12:45 vendethiel but with that, you can pretty much throw any code anywhere
12:49 masak that's not what I'm after
12:50 masak I'm after getting the object for the place where the macro is injected
12:50 masak $mainline here refers to the point of macro invocation
12:51 vendethiel ah!
12:51 vendethiel COMPILING::^declare-var :P
12:53 masak yes, I was close to writing it that way.
12:59 vendethiel totally unrelated, but "back then" was really something else: https://twitter.com/rpy/status/615044896123031552
12:59 vendethiel also, I think I like.
12:59 vendethiel you need to attach a var "somewhere"
13:02 masak \o/
13:03 masak yeah, I saw that tweet a while back. I might even have seen that message in real life...
13:04 vendethiel I like it*
13:06 masak I think it's a winner. for a certain number of use cases, this is what people want.
13:06 masak can also install subs that way.
13:10 vendethiel I'll agree :)
22:19 vendethiel joined #6macros
23:52 vendethiel joined #6macros

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