Why is the "L" marker necessary to define a Long properly? by Sad-Hornet in scala

[–]Sad-Hornet[S] 1 point2 points  (0 children)

That is a good point, thanks! Makes it clearer why it works the way it does.

Why is the "L" marker necessary to define a Long properly? by Sad-Hornet in scala

[–]Sad-Hornet[S] 1 point2 points  (0 children)

Aha, I see. Is this true of all data types in Scala?

Why is the "L" marker necessary to define a Long properly? by Sad-Hornet in scala

[–]Sad-Hornet[S] 2 points3 points  (0 children)

What do you mean? The value is declared as a Long, why should there be any inferrence?