Hi, as far as I know, it is common to omit the parentheses if the method has no side effects. If it is not pure, then one adds the parentheses.
Greets, Till On Mon, Oct 27, 2014 at 9:04 PM, Stephan Ewen <[email protected]> wrote: > Hi! > > I have a question about the code conventions in Scala, or more > specifically, about methods without parenthesis. > > For example, the ExecutionEnvironment.getExecutionEnvironment takes no > parenthesis, appearing that way like a member of the class, rather than a > method. > > Is there some rule when to use methods/functions with parenthesis, and when > without? > > Greetings, > Stephan
