|
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:49
ilbot3 joined
07:51
Ven joined
08:37
Ven joined
|
|||
| Ven | masak: doesn't sound that crazy to me | 08:53 | |
| after all, they are, in Perl 6, exceptions of sorts. | |||
| also, scala has "breakable" which works the same way | |||
| (the only thing you need to be wary off is... other people catching exceptions?) | 08:55 | ||
| masak | what I'm talking about is strictly static, not runtime | 08:56 | |
| it's parts of the Qtree talking to each other through interfaces, basically | |||
|
09:07
Ven joined
|
|||
| masak | in case people missed it: github.com/masak/007/tree/master/self-host | 09:12 | |
| Ven: the object syntax is so nice to use! makes the language come alive in some way | |||
| Ven | that's very nice to hear | 09:13 | |
| I forgot `{Q::Identifier: sub () {}}` work looks good. | 09:14 | ||
| s/work/worked. / | |||
| masak | 007 is a bit weird in that `::` is actually part of the identifier | 09:15 | |
| hm, but I should write those with the `{ Q::Identifier() {} }` shorthand, I realize | |||
| updated. that's better. | 09:19 | ||
| the next plan is to do in-flight conversion of all the lispy tests in t/, and send them through runtime.007 | 09:20 | ||
| so one test suite, two runtime implementations | |||
| Ven | yeah, LTM makes that very nice | 09:21 | |
| since '::' will always be matched before trying to match ':' | |||
| (it can probably get messy with backtracking tho) | |||
| masak | yes, LTM and backtracking do interact in "interesting" ways :) | 09:22 | |
| basically, once you do LTM, you can't have a separate tokenization phase, I guess. it's all intertwined with the main parsing step. | 09:23 | ||
| `::` in identifiers feels a little bit less "fun" now that we have `infix:<::>` | 09:24 | ||
| but I don't know how to get out of that -- I'm not willing to rename things like Q::Identifier to something else | |||
| so people just have to be a bit careful with identifiers and the `infix:<::>` operator | 09:25 | ||
| I'm more and more convinced that the 007 parser needs to go beyond grammars, by the way | 09:29 | ||
| yes, you can name a parameter `my` in 007. we find freedoms like this to be fundamental :) | 09:35 | ||
| Ven | mmh.. | 09:50 | |
|
16:50
Ven joined
17:32
FROGGS joined
18:46
FROGGS joined
19:07
FROGGS joined
19:15
FROGGS joined
19:21
Ven joined
|
|||