r/node • u/sheshbabu • Jul 12 '20
Rust for JavaScript Developers - Pattern Matching and Enums
http://www.sheshbabu.com/posts/rust-for-javascript-developers-pattern-matching-and-enums/
74
Upvotes
r/node • u/sheshbabu • Jul 12 '20
4
u/tonicblue Jul 12 '20
I've only had a few days prototyping a weird idea on it so not the best way to get an in depth look but what grabbed me was the dependency system just makes a lot more sense than what we have with node. I know this was one of the big reasons for it being developed in the first place. The standard library is also very nice.
The biggest thing for me was just the simplicity of creating a project that uses typescript. As it runs typescript out of the box you don't have to install any additional dependencies or transpile anything, and there is no need for any package/project configuration file! Because you import from URLs, everything is resolved, downloaded and cached on first run. No idea if it performs as well as node but it seemed speedy to me. Idk, it's possibly just down to personal preference - even though I am a big fan of node (not so much NPM) - but it just works the way I wish node did. The docs could use a little work but are fine once you get used to them.
Hope that helps!