It's not that bad. Honestly, there are some features I'd like to see implemented in other languages, like
named property variable declarations
const { a } = { a: 5 }; console.log(a); // 5
top-level regular expressions
const value = 'my test value'; const [ , part ] = /my (\w+) value/i.exec(value); console.log(part); // 'test'
Among some other things I can't think of right now. I just started learning Rust, and was really glad to see the pattern matching of types and destructing values while simultaneously having the ability to check parts of it.
30
u/dubs286 Jul 07 '22
And #1 is ?