top | item 47021266

(no title)

adamrt | 16 days ago

In the "for ... else" example, am I wrong to think this is a typo? Should it be "if (sample.key == key)". The second example doesn't help clarify since the resulting variable is shadowed by the loop variable (cpu).

    const item = for (let sample .. items) {
        if (item.key == key) {
            break item;
        };
    } else { ... };

I don't have a project to use hare for currently, but I do appreciate most of it's goals. I think it's an admirable project and hope it succeeds in its ambitions.

discuss

order

No comments yet.