News for hackers. Stuff that matters.
Re:Scala vs Go by TeeWEE on Tuesday February 14, 2017 @11:42AM (#13644807)

  def doSomething():Unit = {...}
  def doSomething:Unit = {...}
  def doSomething() = {...}
  def doSomething = {...}
  def doSomething() {...}
  def doSomething {...}
Re:Scala vs Go by adriaanm on Tuesday February 14, 2017 @12:02PM (#13644986)
Procedure syntax (the last two lines, lacking the `=`) will be deprecated in Scala 2.13. The two variants before those are due to type inference. Are you really arguing against type inference?

The empty argument list `()` is a convention to denote that a method has a side-effect, whereas a method with no argument list at all is considered pure.

Re:Scala vs Go by kodablah on Tuesday February 14, 2017 @11:56AM (#13644931)
The ambiguous non-equals form will go away w/ Dotty IIRC. And the presence/absence of parentheses are NOT the same thing.