Skip to content

spec still shows antiquated "val" syntax in for comprehensions #4918

@scabug

Description

@scabug

SLS 6.19 has:

Enumerator ::= ... 'val' Pattern1 '=' Expr

'val' here should be optional, or even omitted. It has not been required by the compiler in many years, and standard style (e.g. in Programming in Scala) is to omit it. My understanding is that it might even be disallowed in the future.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions