David A. G.’s Post

View profile for David A. G.

Back-End & Data @ Xebia | MBA | Scala Ambassador

James Thompson has made it again... 🤯 🤩 🤓 Match types have been around in Scala 3 for some time now. They are quite cool but - afaik - not that used. In my case, I find myself scratching my head once or twice when trying to use them. Now, Jaime has given us a lovely website where we can play around and learn all - or almost all - the usages of this technique. https://lnkd.in/dXZ4PQnz I invite you to play with it and to share your experience in the comments.

  • Scala 3 Match Type & Disjointness Checker
James Thompson

Software Engineer at Communardo Products (ex Mibex Software), contributor to Scala 3 compiler. Previously compiler engineer at the Scala Center.

1mo

Just want to make it clear that this is an approximation rather than 1:1 with the real compiler - but works well for many scenarios (added a notice now)

Pavel Perikov

Software is badly applied math. Let's fix that. Real-world Scala consulting. Selling honest software engineering.

1mo

Oh, I once tried to came up with the disjoint checking (staying compatible with the compiler) in my macro library :) I believe it was not exposed. Proved hard.

See more comments

To view or add a comment, sign in

Explore content categories