4 ms·
Heh +1 to `trailing commas! I think that's the only "feature".` I don't know why they were removed in the first place.
by benjaminjackman 12y ago
Heh +1 to `trailing commas! I think that's the only "feature".` I don't know why they were removed in the first place.
- frowaway001 12y agoBecause the one thing Scala is missing is more ways to do the same thing.
- benjaminjackman 12y agoSame things? I don't know what you mean, It was a language feature back in the 2.7 days I think? I was a long time ago, hard to remember when they got rid of it. It's really nice for this: val color = List( "Red", "Yellow", "Green", ) If I want to add a 4th element I just ctrl+alt+down, I don't have to go back up and add the comma at the end of the last line, I spend too much time juggling commas in lists for my liking. Some programmers work around it like this (which breaks head-inserting, but that's typically a lot less common) : List("Yellow" ,"Red" ,"Green" ) Which is pretty ugly (to me). It's one of those minor QOL improvements where I don't see what the downside is. Frankly I wish every language had this feature.
- frowaway001 12y ago> It's one of those minor QOL improvements where I don't see what the downside is. That's a nice example why 99.9% of developers out there should never design a language.