Post AW3WYN1OXlD4ivEm0W by fanf42@mastodon.social
 (DIR) More posts by fanf42@mastodon.social
 (DIR) Post #AW0utXwIxeDg5kbhY0 by alexelcu@social.alexn.org
       2023-05-25T12:47:25Z
       
       0 likes, 0 repeats
       
       "Scala 3 Enums"#Blog article (#Java, #Scala, #Scala3, #Programming).https://alexn.org/blog/2023/05/25/scala-enums/
       
 (DIR) Post #AW1ksVg94lDYPJsLsu by fanf42@mastodon.social
       2023-05-25T22:29:53Z
       
       0 likes, 0 repeats
       
       @alexelcu enum in Scala 2.13 would remove a lot of the source code migration problem I have. Going through enumeratum feels a bit wasting redources6:/Thank you for the link, very interesting
       
 (DIR) Post #AW3H8UKjElRuYjTsbA by fanf42@mastodon.social
       2023-05-26T14:33:35Z
       
       0 likes, 0 repeats
       
       @alexelcu given your study on the subject, what would be the best way to migrate current Scala 2 sealed classes + sealarate macro for "values" to Scala 3? First going through enumeratum?
       
 (DIR) Post #AW3H8Uvb1gwKP4jK40 by alexelcu@social.alexn.org
       2023-05-26T16:06:01Z
       
       0 likes, 0 repeats
       
       @fanf42 if all you're doing is to find the values of a sealed trait, you can just write your own macro for Scala 3, which seems to be trivial; I'm unsure of whether it has any gotchas, but the sample is already listed in my article.
       
 (DIR) Post #AW3HmK9SVo46Z3CkxE by alexelcu@social.alexn.org
       2023-05-26T16:13:16Z
       
       0 likes, 0 repeats
       
       @fanf42 For Scala 2, for now, we introduced our own macro. It's  not as flexible, Enumeratum works in more cases but does the job for our code-base. And when we'll switch, we can just change its implementation for Scala 3.
       
 (DIR) Post #AW3WYN1OXlD4ivEm0W by fanf42@mastodon.social
       2023-05-26T18:58:47Z
       
       0 likes, 0 repeats
       
       @alexelcu ok thank you!