|
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. |
|||
|
02:25
FROGGS_ joined
02:49
ilbot3 joined
04:44
vendethiel joined
11:55
vendethiel joined
14:18
vendethiel- joined
16:14
Ven joined
16:51
vendethiel joined
17:42
Ven joined
18:11
vendethiel joined
|
|||
| masak | haha | 22:32 | |
| how... how would we implement `quasi @ Q::Unquote { ... }` ? :P | 22:33 | ||
| it runs into escaping problems. there's no way to talk about "literal unquotes" in a quasi. they just turn into holes. | |||
| (however, you *can* create a Q::Unquote synthetically without a problem, and pass it into an unquote somewhere, so `{{{x @ Q::Unquote}}}` makes sense. which means that `quasi Q::Unquote { {{{x @ Q::Unquote}}} }` would actually work) | 22:37 | ||
| (yes, that's a quasi of type unquote with an actual unquote syntax taking an AST containing a synthetic unquote, the whole thing essentially being a no-op) | 22:38 | ||
| I guess this is what going crazy with the help of macros feels like | 22:40 | ||
| vendethiel | yeaaa | 23:02 | |
| masak | I guess I'll just implement `quasi @ Q::Unquote` but have it fail at compile time, putting a *very* interesting error message in there, culminating in "...so if you think you actually have a use case for this, please contact the 007 implementors" | 23:06 | |