libretto icon indicating copy to clipboard operation
libretto copied to clipboard

Future proofing: Rewrite remaining `implicit`s to Scala 3 replacements

Open MateuszKowalewski opened this issue 2 years ago • 4 comments

  • [x] Get rid of implicitly
  • [ ] Figure out what to do about the implicit classes

MateuszKowalewski avatar Jul 01 '23 19:07 MateuszKowalewski

I have removed a bunch of unnecessary syntactic extensions from CoreLib (i.e. ones that have a straightforward alternative): https://github.com/TomasMikula/libretto/commit/3c5460b0330aa5a5533bdc3f43b27366006c7ec5#diff-0c2a475aa7b1c448e7cdd4bec8598255acb742ea83f9aa91f7eb872473aca154L1604-L1871

Still need to write tests for the remaining ones.

TomasMikula avatar Jul 02 '23 18:07 TomasMikula

Do I get this right, now the language is smaller, but more composable?

Something like that is good for learning. Nice move!

MateuszKowalewski avatar Jul 02 '23 19:07 MateuszKowalewski

The core language is the same. I just eliminated some extra sugar and the syntax is more regular.

TomasMikula avatar Jul 02 '23 19:07 TomasMikula