Perl 6 - the future is here, just unevenly distributed

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

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

All times shown according to UTC.

Time Nick Message
02:48 ilbot3 joined #6macros
04:40 vendethiel joined #6macros
08:29 pdcawley joined #6macros
08:31 Ven joined #6macros
09:14 masak ok, next focus: unquotes.
09:14 masak make unquotes work *everywhere*! MWHAHAHA
09:54 Ven maybe we should at some point discuss of *how* we could break this hygiene :P
10:03 masak sure
10:04 masak synthetic Qtrees are already a way -- working today -- to break hygiene
10:05 masak but we might want to provide more ways than that, increasing convenience at chosen points
10:19 Ven well, for the two last commits, how do you break hygiene there?
10:21 masak same way. synthetic Qtree. the identifier in the operator would be contextless.
10:22 masak by the way, currently as things stand the default operator subclasses are a bit vestigial
10:22 masak but I find I don't want to remove them :)
10:23 Ven huh?
10:24 masak they used to contain the .eval methods for evaluating the operands
10:25 masak but that's now in the built-ins, for everything except infix:<=> and the postfixes
10:25 masak they used to specialize on $type, the role parameter
10:26 masak but that's now the $.ident attribute instead
11:16 Ven joined #6macros
11:19 Ven right, I meant the other thing
11:20 Ven (unhygiene)
11:30 masak maybe that would be easier to discuss around a use case
11:32 Ven well, easy, `map({ $it * 2 }, @a)`
11:33 Ven (yes, totally useless in perl6 as it stands, point still stands)
11:41 masak *nod*
11:41 masak oh, I thought you were asking specifically about unhygienic operators.
11:41 masak but what you want to do is intercept the parser so that it thinks it knows about $it
11:55 masak on another note: I've recently been made aware of http://martinfowler.com/bliki/FeatureToggle.html
11:55 masak I'm now more inclined to implement e.g. type annotations that way
11:55 masak (than using a separate longish-running branch)
12:48 Ven joined #6macros
12:49 Ven that's basically use;, right?
12:55 masak more like `if (%feature-enabled<foo>) { #`[foo-related stuff] }`
12:56 masak er
12:56 masak more like `if %feature-enabled<foo> { #`[foo-related stuff] }`
12:56 masak sorry, been coding Perl 5 today :P
13:47 Ven oke
16:15 Ven joined #6macros
16:36 masak "This plugin implements Design by Contract by <del>abusing</del> repurposing JavaScript labels." -- https://github.com/codemix/babel-plugin-contracts
16:36 masak cute idea.
17:57 vendethiel joined #6macros
20:00 vendethiel- joined #6macros
21:43 masak Q::Term::Quasi. Q::*Term*::Quasi
21:43 masak hm.
21:43 masak oh, wait.
21:43 masak I'm mixing up quasis and unquotes. quasis are always terms. never mind.
21:43 masak and Q::Unquote is already named right.
21:43 masak as you were.
21:46 vendethiel- ..cool :P
21:46 vendethiel- I'm glad I was named right :-).
22:02 masak :P
22:26 masak tonight, I tried to make `quasi { 2 {{{my_op @ Q::Infix}}} 2 }` parse and then DTRT
22:26 masak I am now much better informed of my previous ignorance of the difficulties involved

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