variable definition #1988
Replies: 2 comments 23 replies
-
And how would you do class-types then? Lets say you have a Class |
Beta Was this translation helpful? Give feedback.
-
I agree that I will quote Kate Gregory's message on discord:
Second point, about using
You're not reducing the redundancy, but you're making the syntax a bit more complicated by adding new keywords. It doesn't seem like simply reducing the number of characters is worth the tradeoff in complexity of the syntax. |
Beta Was this translation helpful? Give feedback.
-
hello i hope you well.
in this version and syntax of carbon we declare variables like this. imagine we want to create integer
var temp: i32 = 5;
or useauto
after:
.i think this
:
andtype
after colon is redundant. in my opinion it's better to do this.for integer variable
var32 temp = 5;
orvari32 temp = 5;
or forauto
variable we dont need to write it likevar temp = "hello world!"
.i think it's better to read, write and learn without a little time redundant.
Beta Was this translation helpful? Give feedback.
All reactions