docs.scala-lang icon indicating copy to clipboard operation
docs.scala-lang copied to clipboard

Style Guide: Method Invocation is outdated

Open Sporarum opened this issue 2 years ago • 2 comments

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

Sporarum avatar May 31 '23 11:05 Sporarum

The truth is rather subtle due to the Java exclusion and empty application not entirely excluded.

som-snytt avatar Jun 08 '23 06:06 som-snytt

Yes yes of course, but that doesn't change the fact the page should be updated ^^

Sporarum avatar Jun 08 '23 08:06 Sporarum