exercism / scala

Exercism exercises in Scala.
https://exercism.org/tracks/scala
MIT License
123 stars 131 forks source link

Remove () from methods not returning unit on robot-simulator #589

Closed mlopes closed 5 years ago

mlopes commented 5 years ago

The convention in Scala is to only use () in a function/method that doesn't take parameters. In this case the return type is not unit, so the example should not have parenthesis.

I think this is important as these exercises often are part of people's first contact with the language, so seeing idiomatic examples that follow conventions can help them learn.

ricemery commented 5 years ago

Thanks @mlopes