Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Style Guide: Method Invocation is outdated #2827

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 ^^

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

No branches or pull requests

3 participants