Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Same 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.



> 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.


You really like to insult everyone who disagrees with you, don't you?


Great explanation!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: