Skip to content

Should there be only one context function literal syntax? #10056

Closed
@bishabosha

Description

@bishabosha

Minimized example

val m = (x: Int) ?=> x       // query style, mirrors type
val n = (using x: Int) ?=> x // mixing styles
val o = (using x: Int) => x  // used by the MOOC

Output

they all compile

Expectation

Only one of these should be accepted I assume. Looking at the syntax these are all legitimate, but the docs uses the third kind

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions