News for hackers. Stuff that matters.
Re:From Java to Kotlin and Back Again by cytzol on Wednesday May 23, 2018 @04:58PM (#17138215)
JSON doesn’t support non-String keys, for one thing.
Re:From Java to Kotlin and Back Again by singularity2001 on Wednesday May 23, 2018 @05:00PM (#17138229)
JS does
Re:From Java to Kotlin and Back Again by jscissr on Wednesday May 23, 2018 @05:48PM (#17138657)
Actually no, all keys are strings in JS, and if you use something that isn't a string as a key, it is converted to a string (unless you meant Maps[1], which don't use object notation).

[1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/...

Re:From Java to Kotlin and Back Again by jscissr on Thursday May 24, 2018 @03:35AM (#17141849)
Ok, I forgot Symbol, so you were correct.