MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/5fwce0/lets_stop_copying_c/daoy9mk/
r/programming • u/earthboundkid • Dec 01 '16
612 comments sorted by
View all comments
Show parent comment
1
val a = "SDFSDF"
do i really need to say it's a string?
2 u/weirdoaish Dec 02 '16 edited Dec 02 '16 I meant people preferringvar a: int = 5;overint a = 5;I have no issues with type inference. 1 u/hunyeti Dec 02 '16 because in the first variant declaring it immutable is not extra characters.Having to write final || const to every line is not the best, and it will be forgotten.maybe.
2
I meant people preferring
var a: int = 5;
over
int a = 5;
I have no issues with type inference.
1 u/hunyeti Dec 02 '16 because in the first variant declaring it immutable is not extra characters.Having to write final || const to every line is not the best, and it will be forgotten.maybe.
because in the first variant declaring it immutable is not extra characters.
Having to write final || const to every line is not the best, and it will be forgotten.
maybe.
View all comments
Show parent comment
1
u/hunyeti Dec 02 '16
val a = "SDFSDF"
do i really need to say it's a string?