poslegm / brief

Automated case classes validation using refinement types and macros
MIT License
13 stars 0 forks source link

Support Scala 3 #7

Open poslegm opened 3 years ago

poslegm commented 3 years ago

It will be an entertaining adventure

MEBoo commented 2 years ago

Hi, Have u found a working solution? Any news on macro annotations in scala 3?

poslegm commented 2 years ago

Hello! Bad news: in current Scala 3 compiler there is no way to do it.

Proposed solution is the code generation with scalafix. So, it's impossible to do it in the library. But may be some replacement for macro annotations will be added in the next Scala 3 versions, who knows...

MEBoo commented 2 years ago

Ok thanks, I'll wait ...

poslegm commented 7 months ago

Kit Langton just published great solution for methods generation in companion object. Looks like what we need.