-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Scala 3 #10
Comments
Hi, Ryan. I wrote a flat implementation of Option using opaque types over type unions with Null for Scala 3. I think this could help you in writing support for Scala 3 for ScalaNullSafe. Here's the implementation, https://github.com/RileyDByrd/option-replacement/blob/master/src/main/scala/FlatOptionModule.scala. Here's the benchmark code, https://github.com/RileyDByrd/option-replacement-benchmark/tree/master/src/test/scala. And here are the benchmarks. It performs as well as if-statements.
|
Hey @RileyDByrd , thanks for your interest in the project! I'm not sure if I'll be able to use these opaque type aliases for my Scala 3 implementation since I need to rewrite the ASTs in order to do what the macro does, but it is an interesting approach. |
@ryanstull, no worries. I'll keep using this FlatOption implementation at least for now, but I eagerly await your Scala 3 implementation! |
No description provided.
The text was updated successfully, but these errors were encountered: