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 20 June 2015.
01:38 vendethiel joined 02:51 vendethiel joined 04:15 vendethiel joined 05:30 vendethiel joined 07:20 Ven joined 08:48 Ven joined 09:04 Ven joined 11:20 vendethiel joined 11:47 vendethiel joined 12:40 vendethiel joined 13:04 Ven joined 13:09 vendethiel joined 14:26 Ven joined 15:20 vendethiel joined 15:54 Ven joined
Ven masak: does 007 have modules? 16:11
i'm thinking about implementing macros
masak 007 does not have modules, but could have, I guess. 16:23
007 does however have macros. but not yet unquotes.
when it gets unquotes, I want to make them like yours, in that gist. you know, useful.
16:35 vendethiel joined
Ven nice (thanks) 16:41
well, I think modules make implementing modules a whole bunch harder
at least if you don't already have a way to do stuff "at BEGIN time"
many languages don't have such a notion
sooo... I need to consider that before I try to implement them. multiple phases... 16:42
I had a few more thoughts 16:43
but a lot of them are just revolving around BEGIN, really
do you remember my common lisp macro example?
that mutated the array
i'm not sure how it works currently in p6, but 16:44
macro a { ... }; a; other stuff...
needs to evaluate a *before LEXING* other stuff
(or rather, parsing)
17:02 vendethiel joined 17:12 Ven joined 17:40 Ven joined 18:05 vendethiel joined
masak I don't remember your common lisp macro example, sadly. 18:30
but "before LEXING" sounds like `is parsed`-like taking charge of the parser for a while. 18:31
18:51 vendethiel joined
masak vendethiel: as I'm thinking about how to implement useful unquotes, it seems to me like -- to a first approximation -- I will need to install unquote handling in the (grammar) code path of every grammatical category. 19:26
or, put differently, it seems to me handling of useful unquotes is largely a cross-cutting concern in the grammar, and thus appears "everywhere", in a very scattered fashion. 19:27
("scattered" and "tangled" -- two useful concepts I learned from Aspect-Oriented Programming. "scattered" is when one concern is spread over many code sites. "tangled" is when one code site has to deal with many concerns. AOP aims to solve both.) 19:28
vendethiel reads 21:31
sorry,i drank a bit, won't comment on that now
masak heh :) 21:32
masak is sipping a www.ratebeer.com/beer/great-divide-...out/25082/ 21:33
very decent beer.
vendethiel the beers I got at salzburg were the best 21:38