Hacker News new | past | comments | ask | show | jobs | submit login

I think the author's example is pretty good.

"How do you remove an item from an array in Ruby? list.delete_at(i)...Pretty easy, yeah?"

"In Go it’s … less easy; to remove the index i you need to do:"

  list = append(list[:i], list[i+1:]...)
So Go is simple in that it doesn't have shortcut functions for things. There's generally one way to do things, which is simple. But it's not easy, because it's certainly not intuitive that "append" is the way to remove an array element.



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

Search: