lavafroth@programming.devtoProgramming@programming.dev•No. Greek Semicolons hold no power here.English
11·
1 year agoThe Rust compiler is smart enough to figure this without even the need of an IDE, lol.
The Rust compiler is smart enough to figure this without even the need of an IDE, lol.
Really cool work, mate!
I think some of the modern languages handle this pretty well. Rust has algebraic data types thanks to its brilliant use of enums. Go has a similar type system. Taking the elapsedTime
example from the post, for solving this duration related problem, a Rust programmer would use Duration::from_millis(millis)
or Duration::from_secs(secs)
and forget about the unit. It’s a duration, that’s what you wanna care about.
I used to watch his tutorials but later found myself catching up faster by only reading The Book. Nonetheless, his content is very nice.
If you’re not strictly looking for GUI tools, you might want to look into httpie or the http command built into the nu shell.