Types like in Go #1496
GiorgosAlexakis
started this conversation in
Language design
Replies: 2 comments 2 replies
-
Disliking it does not provide any useful feedback. |
Beta Was this translation helpful? Give feedback.
0 replies
-
i64 is itself pretty easy to understand. A 64 bit integer. I don't think many developers would like to write it out like integer64. Since the thing after the colon is what the type is, it makes sense to have it together with the variable than a space between. Many languages does it this way, Rust and Typescript just to name a few. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Types in the form: float32,int8,int16 (similar to Go) would make the code more readable.
Seeing var i: i64 = -1; looks very weird tbh.
Why not:
var i int64 = -1;
or
var i : int64 = -1;
Why does : have to be sticked on the left and not spaced out?
Or at least:
var i: int64 = -1;
I am not familiar with language design obviously ,but I am genuinely curious.
Beta Was this translation helpful? Give feedback.
All reactions