Simon Krajewski

Results 882 comments of Simon Krajewski

How does this get out of that loop though?

I mean the `while (p != k)`. Once we get that `Eof` exception, it would just continue looping and keep getting that same exception, no?

Right, I suppose that's how it should work... I'm a bit wary of a loop like this without any delay, but I guess it's fine.

This gives me `2` an all targets (that I tested) except Eval.

This also fails on PHP and python.

I have implemented this on the linked branch, but I'm still not sure if I actually like it. I'm seeing quite a few places where we use a `==` check...

Hmm, I vaguely remember that this is by design, but looking at it now makes me question if that design is any good...

Well, this isn't really about maps in particular, it's about `@:multiType`. But yes, you're not the first person to be confused by this, so I suppose I'll finally relent and...

```haxe import haxe.Rest; function main() { var a = { var tmp = []; tmp.push(0); tmp; }; test(...a); } function test(args:Rest) { trace(args); } ``` The dump has this: ```...

Ah right, this is just a `@:from` function from `Array` to `Rest`. But this still doesn't explain why there's a monomorph here because this is quite clearly an `Array`.