3 ms·
I find it weird how the variable type is between the name and value. I’m sure there is a well thought out valid reason though
by nerdbaggy 8y ago
I find it weird how the variable type is between the name and value. I’m sure there is a well thought out valid reason though
- sdrothrock 8y agoI think it's just the nature of how it expanded from type hinting. That is, originally, you were simply hinting at the type of the variable through "pi: float" rather than declaring it. In that standalone context, the format makes sense to me.
- jimmy-dean 8y agoThis is something I was introduced to when learning Rust. I've grown to like it as I now read declarations such as: let x: int32 ... as "let x be a 32 bit integer ...".