News for hackers. Stuff that matters.
Re:Show HN: Ferrum.js – Rust features in JS: traits and adva... by nicoburns on Wednesday July 03, 2019 @09:32AM (#20344110)
But not nearly as nice as:

    match x {
        0 => 'zero',
        x if x > 0 => 'positive',
        x if x < 0 => 'negative',
    }
Re:Show HN: Ferrum.js – Rust features in JS: traits and adva... by svrtknst on Wednesday July 03, 2019 @10:42AM (#20344674)
I actually made a library for that!

It's published on npm and everything. It's small, a bit unpolished, maybe needs more docs, but it works pretty damn well if you ask me!

https://gitlab.com/svartkonst/match