Skip to content

Style Guide: Method Invocation is outdated #2827

Open
@Sporarum

Description

@Sporarum

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions