Perl 6 - the future is here, just unevenly distributed

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

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

All times shown according to UTC.

Time Nick Message
01:48 ilbot3 joined #6macros
03:56 vendethiel joined #6macros
06:50 FROGGS joined #6macros
06:55 Ven joined #6macros
07:18 Ven joined #6macros
09:06 Ven joined #6macros
10:09 Ven joined #6macros
13:15 Ven joined #6macros
13:48 Ven joined #6macros
14:14 Ven joined #6macros
14:24 Ven joined #6macros
14:41 Ven joined #6macros
14:55 Ven joined #6macros
14:57 Ven joined #6macros
15:18 Ven joined #6macros
15:45 Ven joined #6macros
15:48 Ven joined #6macros
16:08 Ven mmh, obviously, ident-expr can't use identifier
16:08 Ven that's an issue
16:10 Ven actually, I probably can
16:10 Ven "['<' <-[>]>+ '>']?    " wat?
16:17 masak why couldn't it?
16:18 masak oh, that's for operators, like 'infix:<+>'
16:18 Ven ah, ok
16:18 Ven well, it fails with "Variable 'a:' is not declared"
16:19 Ven even though I use <identifier>, only <term:identifier> should do that. uh..
16:19 Ven aaah, ok, I get it.
16:19 Ven my str-expr uses <expr>
16:19 Ven but, <identifier> will eat the
16:20 Ven ":"...
16:20 masak yeah...
16:20 masak that sounds wrong
16:20 masak maybe the ':' should go inside the []
16:20 Ven and I can't use <term:str> directly :|
16:20 masak hold on, let me test a patch for that
16:21 masak no, but you can refactor term:str to call <str>, and then use that :)
16:24 Ven that's done already
16:25 masak then you can use <str>, no?
16:25 Ven yeah :-)
16:25 Ven moar indirection!
16:26 Ven it's not java, so I'm not gonna call it an abstraction... ;)
16:26 Ven (yes, cheap shot, I know)
16:26 masak :P
16:27 masak I've already heard a lot of Java bashing today at work, so yours kind of pales in comparison :)
16:27 Ven :)
16:28 masak here you go. https://github.com/masak/007/commit/e826215d7ebdb5c26fc084b613b6d0f1daef242d
16:32 Ven ok 1 - {}
16:32 Ven ok 2 - {"a": 1}
16:32 Ven ok 3 - {a}
16:32 Ven Q::Identifier.new(name => "a")
16:32 Ven ok 4 - {a : 1}
16:32 Ven guess I'll just have to stuff that .name, like a savage? :D
16:33 FROGGS joined #6macros
16:33 Ven wtf. I lost my code
16:34 Ven amazing...
16:36 Ven wtf is git doing
16:37 Ven it's trying to hook up the diff on parens
16:38 Ven but you removed it
16:40 vendethiel joined #6macros
16:45 Ven ok. {a: 1} parses.
16:45 Ven not to the right thing, probbly
16:45 Ven it certainly pretends to..
16:47 Ven git threw my stash away. ok
16:48 Ven I give up for today. Fuck git.
16:52 Ven git reset --hard 783e628
16:52 Ven HEAD is now at 783e628 Fix conflicts with c8783f2bc07c62f7c7d16322d638cac8a7ccc5d6
16:52 Ven what kind of drugs..
18:06 vendethiel joined #6macros
18:07 vendethiel [23:31] <masak> the $.key attribute will sometimes be a Q::Literal::Str and sometimes a Q::Identifier, that's all
18:07 vendethiel sometimes a function
18:44 baldemar joined #6macros
19:43 vendethiel joined #6macros
19:57 Ven joined #6macros
19:58 Ven okay, I'm gonna try again. Rewrite this things
20:04 masak oki
20:04 masak I'm here, nearby
20:05 Ven actually, it refactored my code... it works like that... wut.
20:08 vendethiel my internet doesn't, tho..
20:15 vendethiel I don't get how the tests can work though..
20:15 Ven joined #6macros
20:22 Ven > '{a: 1}' '(object (property (int 1) (int 1)))'
20:22 Ven Test.pm is totally fine with that
20:24 Ven I need to teach him more about property, maybe?
20:24 Ven oooh, it uses .Str, doesn't it...
20:25 Ven yay \o/
20:35 Ven joined #6macros
20:40 Ven make Q::Property.new(Q::Literal::Str.new(~$<identifier>),
20:40 Ven $<identifier>.ast);
20:40 Ven looks a bit ugly..
20:45 Ven so.
20:47 masak sorry, got distracted by $stuff :)
20:47 masak looks OK to me
20:49 Ven oke :)
20:49 Ven I just need to go about method, then
20:49 Ven no idea on that one. Seems like Q::Statement::Sub won't do (as I had guessed)
20:52 Ven sometimes I think perl6 should've done away with "class"es :P
21:09 Ven well, parsing "{a}" with { <identifier> } works (yeah of course)
21:09 Ven but parsing "{a()}" with { <identifier> '()' } doesn't (token OR rule)
21:09 Ven I'll sleep on that one
21:41 masak hm
21:41 masak I don't see offhand why that wouldn't work

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