little_ferris@programming.devOPtoRust@programming.dev•What are some mind blowing Rust tricks?English
2·
14 days agoYea it’s like when we writeSome(2)
. It’s not a function call but a variant of the Option
enum.
Yea it’s like when we writeSome(2)
. It’s not a function call but a variant of the Option
enum.
Do you mean RAII guards
https://rust-unofficial.github.io/patterns/patterns/behavioural/RAII.html
Or match guards?
https://doc.rust-lang.org/rust-by-example/flow_control/match/guard.html
😂 Ikr!
Yeah I don’t mean just terse functional idioms. Any programming technique that blew your mind the first time you came across it would qualify.
All your arguments can be applied when comparing ts to js. You can just use the succinct and readable js. Why waste time dealing with this type is implicitly any
?
Get things done with js and chill.
Woah. That’s quite interesting. I didn’t know that.