this post was submitted on 06 Nov 2021
21 points (92.0% liked)
Rust Programming
8438 readers
42 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Also noob here (so anyone that knows better can correct me), they have an entire section in The Book dedicated to explaining the differences, but basically those differences are:
mut
;main
function, it's way better to use it;2.0 * 3.1415 / 4.0
but can't use variables or other stuff that is processed during runtime, like,x + 14 / y
oradd(4, 3)
(just an example of a function, in this case).