Perl 6 - the future is here, just unevenly distributed

IRC log for #6macros, 2015-04-04

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

All times shown according to UTC.

Time Nick Message
07:49 Ven joined #6macros
08:47 Ven joined #6macros
10:30 Ven joined #6macros
11:11 Ven joined #6macros
15:38 Ven joined #6macros
15:52 Ven joined #6macros
16:19 Ven joined #6macros
16:29 Ven joined #6macros
17:08 Ven joined #6macros
19:03 vendethiel joined #6macros
21:15 vendethiel I checked, it's indeed the book I read
21:15 vendethiel I also remembered something, f# has code quoting as well
21:15 vendethiel <@ CODE @>
21:16 vendethiel you can then manipulate it
21:16 vendethiel and do stuff like match (with their amazing "active patterns")
21:17 vendethiel match code with | SpecificCall <@ (OP) @> (?, ?, [lhs; rhs]) -> do stuff
21:18 masak ooh, I kinda like the look of <@ @>
21:19 * masak thinks he wants destructuring in Perl 6, at least in the form of a macro-driven module
21:20 vendethiel the AST types are under Expr
21:20 vendethiel and they have a .Eval() method
21:20 masak so far so good
21:20 vendethiel (yeah, f# is a mess with method-vs-functions-vs-OTHER-STUFF and all that...)
21:20 vendethiel so, you can say:
21:21 vendethiel let conv = <@ fun (x: string) -> x.ToUpper() @>.Eval() in conv "hey"
21:23 masak I see.
21:26 vendethiel I don't know much f#, but computational expressions, type providers, quotes and active patterns are good features
21:40 masak ok.

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