Perl 6 - the future is here, just unevenly distributed

IRC log for #6macros, 2015-11-30

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

All times shown according to UTC.

Time Nick Message
04:45 ilbot3 joined #6macros
07:09 vendethiel joined #6macros
08:18 FROGGS joined #6macros
08:20 masak .run is just "what a Q::Statement node does at runtime when control reaches it"
08:20 masak I guess the reason it, too, isn't called .eval is that 007 happens to believe in the separation of Expr and Statement
08:21 masak and so there isn't really a return value
08:30 pdcawley joined #6macros
08:33 masak $ perl6 bin/007 -e='macro moo() { return Q::Statement::Return { expr: "OH HAI" } }; sub foo() { moo(); return "never reached" }; say(foo())'
08:33 masak Method 'eval' not found for invocant of class 'Q::Statement::Return'
08:33 masak dang, that should work :)
08:33 masak that's supposed to inject an *unhygienic* `return` into foo
09:36 Ven joined #6macros
09:38 masak hm, I think the Q::Expr::Block hack can go away, when we put the lookup magic in identifiers.
09:38 masak we'll still need to tackle the impedance mismatch for quasis (inside looks like a statementlist, outside looks like an expression), but that shouldn't require a solution as heavy-handed as Q::Expr::Block
09:58 Ven joined #6macros
11:04 pdcawley_ joined #6macros
12:15 masak you know what we should try out in a branch?
12:15 masak stuffing the whole Q hierarchy inside of Val::Object :D
12:22 Ven joined #6macros
13:41 Ven rust macros in action! https://github.com/sgrif/diesel
13:43 masak cute :)
18:16 pdcawley joined #6macros
22:33 cgfbee joined #6macros

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