Perl 6 - the future is here, just unevenly distributed

IRC log for #6macros, 2015-03-22

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

All times shown according to UTC.

Time Nick Message
19:05 Mouq joined #6macros
19:10 Mouq http://irclog.perlgeek.de/6m​acros/2015-03-21#i_10317283 huh?
19:11 Mouq vendethiel: My suggestion was to take "is parsed /<call> + % '|'/" and turn it into "infix:<|> (AST::Call @calls)"
19:11 vendethiel Mouq: if  you devine infix:<|>(Ast::Call @), then no other macro can use |
19:13 vendethiel + it really shouldn't be defined "locally"
19:13 vendethiel it's like we need a mechanism to change the scope inside the argument list
19:13 vendethiel (which would be insane, but is basically what macros do :P)
19:13 Mouq Ohhh, I see what you mean now. My bad
19:23 Mouq FWIW, I understand that it's just an example, but I'm still against "is parsed". My approach is that the macro should define an API with which it can be called, which is then implemented with a "macrorule" or similar. I'm not sure this really helps with your case
19:25 vendethiel I just said "is parsed" as an example ;-)
19:25 vendethiel I don't want regexp-based parsing.
19:25 Mouq Potentially, though, there could be an "has arg_sep<|>"
19:25 vendethiel not, that could never work, not flexible enough
19:25 vendethiel where's the precedence declaration, for example
19:26 Mouq True
19:26 Mouq Also would interact badly with infix:<|>
19:33 Mouq Although, really, in Perl 6 wouldn't that example look like: `adt Maybe (Just[::T], Nothing)` ?
19:34 Mouq ( `Maybe[::T]` I suppose)
19:37 vendethiel could.
19:37 vendethiel we don't have "adt" nor in compilers neither in the spec, tho
19:38 vendethiel (AFAIK)
19:38 vendethiel would be good as a macro...
19:41 Mouq No, just in terms of making it fit into the language
19:43 Mouq For example, I assume the reason you use calls in elixir version is because type names are always UpperCased?
19:43 Mouq Whereas we can do better here
19:54 vendethiel yeah
19:55 vendethiel Foo(x) is a syntax error.
19:56 vendethiel hence I need to format it + use Module.concat.
19:57 masak whoa, backlog
21:15 Ven joined #6macros

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