docs.scala-lang
docs.scala-lang copied to clipboard
Style Guide: Method Invocation is outdated
For example: """ Scala allows the omission of parentheses on methods of arity-0 (no arguments):
reply()
// is the same as
reply
""" This is not allowed, at least in Scala 3: https://scastie.scala-lang.org/8HKODlg1QXWvKbo0QfeLvw
There is also no mention of the inline keyword, which I believe to be now required for inline methods
The truth is rather subtle due to the Java exclusion and empty application not entirely excluded.
Yes yes of course, but that doesn't change the fact the page should be updated ^^