|
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:30
vendethiel joined
07:38
vendethiel joined
11:49
FROGGS joined
14:11
FROGGS_ joined
20:36
vendethiel joined
|
|||
| vendethiel | I'm reading the visitor example with some brainpower now | 22:13 | |
| I like that it's using Perl6-syntax for destructuring, ofc | 22:14 | ||
| masak: how do you test a macro? | |||
| such a macro | |||
| just EVAL and look at the results? | 22:15 | ||
| masak | who is the person testing in this case? | 22:17 | |
| a module writer? a compiler implementor? | 22:18 | ||
| vendethiel | macro module writer | ||
| well, macro-using module* | |||
| to check, say, for diagnostics, for false positives, etc | |||
| possible use case: implement "is deprecated" as a vmacro (????) | |||
| masak | aye | 22:19 | |
| I don't immedaitely have an answer to that. | 22:20 | ||
| will need to sleep on it, I think. | |||
| possibly the answer will even differ depending on if we're testing for transformed Qtree output, or side effects such as dying or mucking with global state | |||
| 'night, #6macros | |||
| vendethiel | 'night :-) | 22:21 | |
| mmh, is there any reason "is parsed" doesn't simply use destructuring instead? not enough flexible, probably | |||
| 'think we'll want FROGGS++'s input there | 22:22 | ||
| > # ...code to check that $expr is of the form `{{{$var}}} = {{{$value}}}` elided... | 22:26 | ||
| maybe that should be possible from "is parsed", or maybe a subset should be defined? | |||