|
6macros: discussing the finer points of Perl 6 macros, Qtrees, and how to stay sane | irclog: irclog.perlgeek.de/6macros/today Set by moderator on 28 July 2015. |
|||
|
05:50
vendethiel joined
07:25
vendethiel joined
09:25
FROGGS joined
|
|||
| masak | I'm hoping to be able to nab some 007 tuits today. | 09:49 | |
| hoping to implement full assignment :) | 09:50 | ||
| just pushed assignment to array elements. | 10:51 | ||
| heh, that was easier than I thought :) | |||
| it's now possible to put the stringifier into an infinite recursion. I just tried. | 10:52 | ||
|
12:32
masak joined
|
|||
| masak | heh, how should infix:<==> behave in the face of nested self-references... | 12:55 | |
| the simple rule used to be "the whole thing is equal iff everything is component-wise equal" | |||
| but if one of the components *is* the whole thing, then a stronger rule is needed | 12:56 | ||
| hm, this might fly: first, check whether we've already seen a reference to an array or an object. if we have, then compare by reference instead of recursing. | 13:04 | ||
| something feels off with that, but it seems to cover the cases I can think of, at least | 13:09 | ||
| ok, .push and .pop are now implemented -- .shift and .unshift are Low-Hanging Fruit if anyone wants it ;) | 13:40 | ||
| anyway, I'd say we're about halfway to having github.com/masak/007/issues/119 | 13:47 | ||
| need to look at the object side of things, too, not just the array side of things | |||
| but the good news is that getting this far did *not* require an "index path" abstraction | 13:48 | ||
|
15:11
FROGGS joined
|
|||
| masak | hanoi.007 is now looking nicer than ever: github.com/masak/007/blob/examples.../hanoi.007 | 16:28 | |
| (yes, it works) | |||
| the new bits which didn't work before today are `my disk = state[from].pop();` and `state[to].push(disk);` | 16:29 | ||
| (instead of extremely cumbersome subroutines that did the same but without mutating arrays) | 16:30 | ||
|
17:10
FROGGS joined
18:49
vendethiel joined
|
|||