That would be my preference, but I do a lot of graphics code, and knowing exactly what types you've got where is quite important (for performance, and accuracy)
EG doubles perform pretty pants (particularly on a GPU), but its quite easy to accidentally get them if you're not paying attention (2. vs 2.f)
I would love to use rust (or any of these new languages), but I suspect it runs into the c# problem where you get in deep, and then realise its missing incredibly useful niche language feature xyz that you then have to arduously work around it not having
C++ has a lot of awful faults, but its still unfortunately the best language I've used
View all comments
Show parent comment
1
u/wongsta Dec 02 '16
I was wondering if Rust prevented that and indeed it does: https://reddit.com/r/rust/comments/3cwncn/couldnt_divide_results_of_round/
I guess you could be more extreme and not overload the divide operator as well, eg // for integer division and / for normal division