Perl 6 - the future is here, just unevenly distributed

IRC log for #6macros, 2015-12-15

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

All times shown according to UTC.

Time Nick Message
07:20 FROGGS joined #6macros
19:12 FROGGS joined #6macros
19:27 vendethiel joined #6macros
20:30 masak some stray insights from today's thinking:
20:31 masak the `quasi @ Q::` syntax is going to want to be flexible in two separate ways
20:32 masak (a) various parsing constructs have delimiters -- Q::Block has {}, Q::ParameterList has (), and Q::StatementList arguably has {} too -- I think we'll want to be lenient and allow most or all of those with or without their delimiters
20:34 masak (b) I think we'll want to auto-cast both Q::Literal::Str and Val::Str to Q::Identifier when applicable. maybe even to Q::Parameter, but I'm less sure about that one.
20:41 vendethiel I think we want to *forbid* delimiters
20:41 vendethiel otherwise you can't see what's nested correctly
20:43 vendethiel when do we autocast to Q::Identifier?
20:45 masak forbidding delimiters is another attractive option, yes
20:46 masak when do we autocast to Q::Identifier? in a situation like `macro moo(name) { return quasi { my {{{name}}} = 42; } }; moo("x")`
20:47 vendethiel alright :-)
20:47 masak or maybe you'd have to do `macro moo(name) { return quasi { my {{{name @ Q::Identifier}}} = 42; } }; moo("x")`, I dunno
20:47 vendethiel mmh, mmh, me half-likey. or something.
20:47 vendethiel passing it as a string stil feels wrong.
20:48 masak the more I use this syntax with the @ signs, the more I like it
20:48 masak (orthogonally to whether we end up auto-casting strings to identifiers)
20:48 vendethiel I'm glad :)
20:49 vendethiel not sure why "@" rings the "infix! infix! infix!" bell in my mind. probably email addresses?
20:50 masak it fits very well with what it does
20:50 masak too bad we can't use it in Perl 6...
21:05 masak next insight: Q::Quasi does not have a $.block, it has $.contents
21:54 masak 300 tests! \o/
22:00 vendethiel gg!

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