Crazy idea: the UseByDate[Y, M, D] implicit. If you don't want to support your API for more than a year, require implicit evidence of UseByDate[2018, 12, 16]. Needs SIP-23. A macro autogenerates instances up to specified date. Implementation is left as an exercise for the reader.
Or how about a version which checks the library status in Scaladex at compile time and refuses to compile APIs marked at deprecated?
-
-
I absolutely don't meant to sober it down, but can't you just check for deprecation annotations?
-
Yeah, possibly. I don't like annotations in general, but they do actually provide a way of accessing literal types at compile time without SIP-23...
- Show replies
New conversation -
-
-
In before "sbt-timetravel".
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.