News for hackers. Stuff that matters.
Re:Kotlin Features I miss most in Java by lokedhs on Sunday October 29, 2017 @08:53PM (#15582446)
I've been writing quite a bit of Kotlin, lack of semicolon isn't a great idea in my opinion.

The problem is that while Java is newline-agnostic (newline is just another whitespace), Kotlin has some rather difficult rules to determine the what a newline does.

Granted, the rules are not quite as insane as those of Javascript, but I find it very unsatisfying newlines are sometimes significant, and sometimes not.

And just to make it clear where I'm coming from on this topic, my preferred language is Common Lisp, so I really prefer consistent syntax.

Re:Kotlin Features I miss most in Java by andybak on Monday October 30, 2017 @03:08AM (#15583501)
Yep. Consistency beats "syntactic noise". In fact lack of consistency is noise. If semicolons are always present, then my brain filters them out. If they are never present then great (yay! Python)

However - occasionally present or absent semicolons means I have to think about each situation - at least to a small degree.

Re:Kotlin Features I miss most in Java by morj239 on Monday October 30, 2017 @04:48AM (#15583734)
The only place when you really need semicolons Kotlin are the enum constants, everything else can be considered "strictly no semicolons", so pretty consistent.
Re:Kotlin Features I miss most in Java by edem on Monday October 30, 2017 @06:00AM (#15583946)
I write Kotlin for more than a year and semicolon usage is pretty consistent: no semicolons. The only place I remember using them is in enum constants. I also came from the lisp world (CL -> Clojure).
Re:Kotlin Features I miss most in Java by setum on Monday October 30, 2017 @06:17PM (#15589463)
Your second line, if true, makes your first line wrong.
Re:Kotlin Features I miss most in Java by edem on Sunday November 05, 2017 @05:43PM (#15632183)
Well only if you are a mathematician living in a box but this is the real world you know.