Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

mlopes
Copy link
Contributor

@mlopes mlopes commented Nov 13, 2018

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.

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 parentesis.
@ricemery ricemery merged commit 964b9a2 into exercism:master Nov 13, 2018
@ricemery
Copy link
Member

Thanks @mlopes

@mlopes mlopes deleted the remove-parentesis-from-methods-not-returning-unit branch November 13, 2018 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants