Lloyd
Lloyd
Yeah, the `SlickEnumColumnSupport` can def be improved. Please feel free to send a PR.
> The first step towards Scala 3 for any real-world project is cross-compilation between Scala 2.13/Scala 3. Most of the OSS libs added Scala 3 to their cross-builds. > >...
> My 2c: we use Enumeratum mostly to model things that map to postgres enums, with a nice benefit of being able to have safe `withName*` overloads for decoding. >...
@note Hmmm I think that's almost it, but how do we make the second print resolve `Red` from the custom name `"red"`?
> > Thus, the Enumeratum macros should be ported. > > any plan to have the macros ported? The plan is: 1. Come up with a working prototype for the...
> > In particular, the enclosingModule function is basically gone with no replacement in Scala 3 AFAIK > > There is some dotty/scala3 issue about that? Nope. I think it...
@marq Thanks so much for that (even including a Scastie!). I'm very unfamiliar with the new Scala 3 macros (and it seems like the documentation may not be the most...
> Hi @lloydmeta ! It seems that enumeratum still provides stuff that native scala3 enums don't, does it? Would be great to have I guess. > Are you actively working...
Thanks to @tpunder, the Scala 3 port is mostly complete. The remaining bit is https://github.com/lloydmeta/mune/issues/3, which involves porting over this bit https://github.com/lloydmeta/enumeratum/blob/d91d191cd11a630cc4d1b7cc6c82decdf436ac1b/macros/src/main/scala/enumeratum/ValueEnumMacros.scala#L85-L117 I think the main tricky bit is finding...
Hey there, So this looks useful to me, but at the same time, Iām a bit weary of adding and maintaining these converters, since the ones that exist in Core...