Skip to content

Style Guide: Method Invocation is outdated #2827

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
Sporarum opened this issue May 31, 2023 · 2 comments
Open

Style Guide: Method Invocation is outdated #2827

Sporarum opened this issue May 31, 2023 · 2 comments

Comments

@Sporarum
Copy link
Contributor

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

@som-snytt
Copy link
Contributor

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

@Sporarum
Copy link
Contributor Author

Sporarum commented Jun 8, 2023

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants