↳
In-reply-to
»
🦀 I think I’m starting to enjoy writing Rust code. Its typing system is rather explicit/verbose (I like that) and it somewhat tries to make it a bit harder to ignore errors. I think I’ll stick with it this time. 🤔
⤋ Read More
A great example of the madness caused by implicit return
is this: https://github.com/seanmonstar/num_cpus/blob/master/src/linux.rs#L39 You have to read this function carefully and look out for missing ;
at the end of the lines to spot the locations where a return
happens. Or look at this: https://movq.de/v/56521e7fab/s.png Arrr! 🥴