Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add parentheses to methods which are not purely-functional #93

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

Merged
merged 1 commit into from
Aug 2, 2015

Conversation

qilab
Copy link
Contributor

@qilab qilab commented Aug 1, 2015

There are some methods depend on the current time, e.g. DateTime.now.
These methods are not a pure function, so in accordance with the Scala Style Guide, I want to call them with parentheses: DateTime.now().
However these methods are declared without parentheses, e.g. def now = new DateTime, it forces us to call them without parentheses.

In this PR, I declared above methods with parentheses.

Thanks!

@xuwei-k
Copy link
Member

xuwei-k commented Aug 1, 2015

👍

xuwei-k added a commit that referenced this pull request Aug 2, 2015
Add parentheses to mathods which are not purely-functional
@xuwei-k xuwei-k merged commit 7975f9b into nscala-time:master Aug 2, 2015
@xuwei-k xuwei-k changed the title Add parentheses to mathods which are not purely-functional Add parentheses to methods which are not purely-functional Oct 6, 2015
@qilab qilab deleted the parentheses branch February 7, 2016 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants