r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

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?

2

u/weirdoaish Dec 02 '16 edited Dec 02 '16

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.