I am new to Rust. Same as most of you guys, I have seen some languages and created/ maintaining a lisp dialect for metaprogramming needs that's hard to do without it.
As new to the language, I am fascinated with the ownership system, its really cool. Lifecycle is also a little peculiar but perfectly understandable.
I saw few posts here but could not find what I was looking for. I understand the high level stuff but confused by a simple one.
I am trying to port a Kotlin project of mine to Rust. In Kotlin, everything is an expression and result of last line to be executed in a block becomes the result of that block which also determines its type. I can use the semicolons o end expressions anywhere but Ctrl+F will probably fail me.
I noticed that in Rust, situation is similar but opposite. Last line still has something to do with returning the result and determining the type of block. But couldn't understand what semicolons have to do with the whole process, you get what I am trying to say?
Appreciate any help from the designers I can get as a newcomer to the language.