18:32 | <bakkot> | kinda want a String.prototype.splitIter method |
18:32 | <bakkot> | now that we're getting iterator helpers |
18:33 | <bakkot> | for e.g. processing a long string line-by-line |
18:33 | <bakkot> | I guess you can do it with matchAll but that's a bit painful |
19:09 | <rkirsling> | gotta call it splIter |
19:10 | <rkirsling> | (surely won't confuse anyone) |
19:12 | <bakkot> | ... tempting |
19:52 | <Kris Kowal> | Consider that this implies: GeneratorFunction.prototype.fork . |
19:55 | <Kris Kowal> | Which would be wickèd, of course. |
19:55 | <Kris Kowal> | And also perhaps gives more power to the holder of an iterator than they ought have. |
20:01 | <bakkot> | GeneratorFunction.prototype.fork sounds incredible, we should do that (except that probably we shouldn't actually do that) |
20:08 | <shu> | is the state COW |
20:08 | <Kris Kowal> | Only in Bovinia. |
22:41 | <snek> | i'm in favor of generator forking |
22:41 | <snek> | with implementation defined behavior for whether locals are copied or not |