Tweaking the syntax of extension methods again

Mark "Justin" Waks
1 min readNov 15, 2019

--

For those paying attention to the eternal saga of extension method syntax: Martin just submitted a PR to adjust the way that given extensions work.

I don’t believe this affects the syntax of individual extension methods, just the way you group them together into a single given clause. Personally, I am ruefully amused at the way the syntax has come round to the point where it looks an awful lot like implicit classes.

For the exact details, I recommend looking at this new bit of documentation.

Usual caveat: this is just a PR, of a feature that is still rather in flux. But we’re getting down to the wire at this point — the review process for what will become Scala 3 (however that winds up working) will start in a couple of months…

--

--

Mark "Justin" Waks
Mark "Justin" Waks

Written by Mark "Justin" Waks

Lifelong programmer and software architect, specializing in online social tools and (nowadays) Scala. Architect of Querki (“leading the small data revolution”).

No responses yet