Skip to content

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