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.
-
Show this thread
-
-
Replying to @gabro27
Or how about a version which checks the library status in Scaladex at compile time and refuses to compile APIs marked at deprecated?
2 replies 0 retweets 0 likes -
Replying to @propensive
I absolutely don't meant to sober it down, but can't you just check for deprecation annotations?
1 reply 0 retweets 0 likes -
Replying to @gabro27
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...
1 reply 0 retweets 0 likes -
Replying to @propensive
By the way, suppose we have a format for deprecation annotations that can also specify the newer API to use. And then scalafix picks it up and does it for you! But I digress...
1 reply 0 retweets 3 likes
Replying to @gabro27
This thought had crossed my mind too... ;)
1:18 AM - 16 Dec 2017
from Haarlemmermeer, Nederland
0 replies
0 retweets
0 likes
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.