Komari Spaghetti

Results 98 comments of Komari Spaghetti

Seems like "intended" behavior to me. To print an int you have to branch on it, and branching on undefined is undefined behavior, so anything could happen.

Basically, I'm not sure if I understand why you expect the `usize` and `u4` versions to have the same value. `undefined` has no specific value. Going from u4 -> usize...

Doesn't seem like zigs auto doc is not quite ready as it has not yet been merged into master: https://github.com/ziglang/zig/wiki/How-to-contribute-to-Autodoc#where-is-autodoc= I know there is some old system, but I don't...

Mecha is what you call a "parser combinator" library. It works by composing functions into new functions and is a functional programming concept (have a look at functional programming function...

Also hitting this. Seems that `waitForEvent` is stuck in [this loop](https://github.com/Aransentin/ZWL/blob/8fac22939bdbe064c12817e09e26c5b9599cdfa7/src/x11.zig#L323) because `file.read` always returns `0` once the window have been closed

Ops, missclick. Sorry about that

I would love this feature as well, but how restricted should this feature be? Is this allowed? ``` const E = enum { First = 1, Last = 1000 };...

Well, as long as: ``` const E = enum(u8) { A = 0, B = 1, C = 2 }; const arr = [E]i64{ -1, 0, 1 }; arr[E.A]; ```...

As for the extra `for` "payload". I can't see the use case. Maybe we can add enum arrays into the language, see if any real code needs this extra payload,...

@raulgrell I think you misunderstood me. I meant if the enum is a direct mapping to array indexes, then the compiler should output equivalent code and I would be happy....