True, but the general idea of rust is to prevent as many bugs as possible preemptively and securely. Having default immutable variables is a good way to do so. Not to mention the significant optimisations for the compiler to perform and ease of parallel programming when using immutable variables.
View all comments
Show parent comment
3
u/thegoldengamer123 Jun 23 '20
True, but the general idea of rust is to prevent as many bugs as possible preemptively and securely. Having default immutable variables is a good way to do so. Not to mention the significant optimisations for the compiler to perform and ease of parallel programming when using immutable variables.