News for hackers. Stuff that matters.
Re:Swift is like Kotlin by lenkite on Thursday May 18, 2017 @12:47PM (#14368776)
Re:Swift is like Kotlin by tmail21 on Thursday May 18, 2017 @01:15PM (#14369051)
Cool.

This needs to be built into the language or somehow standardized by the community.

With lack of standardization of immutable collections, there would be lots of different ways that libraries would implement immutability. This would result in losing one of the main benefits of functional programming (i.e. awesome composability).

Re:Swift is like Kotlin by jorgemf on Thursday May 18, 2017 @02:24PM (#14369722)
This is already in the language. It is just an interface which makes the common lists only visible as immutable objects. But inside they are a normal list. And in this case the object is read-only, not immutable, as we were discussing in the other comment thread.
Re:Swift is like Kotlin by problems on Thursday May 18, 2017 @01:40PM (#14369305)
Well, that is part of the Kotlin project itself, so I assume it is or will be built in, should the proposal succeed.
Re:Swift is like Kotlin by tmail21 on Thursday May 18, 2017 @02:55PM (#14369986)
Not sure about the governance model of Kotlin. Hopefully it succeeds.