@propensive thoughts on using contextual for compile time checking a resource's existence / validity?
-
-
Replying to @NicolasRinaudo
Validity: totally! Existence: sure, provided the existence test at compile-time holds at runtime.
2 replies 0 retweets 0 likes -
Replying to @propensive
It should - if the resource is in the CLASSPATH at compile time, it can reasonably be expected to also be there at runtime
1 reply 0 retweets 0 likes -
Replying to @NicolasRinaudo @propensive
The one possible limitation is that resource paths would have to be constant strings, not something like s"/path/to/$res", for example
1 reply 0 retweets 0 likes -
Replying to @NicolasRinaudo
Yeah. Contextual can let you choose whether that should compile or not. You could even control it with an implicit...
1 reply 0 retweets 0 likes -
Replying to @propensive
Can it? With `res` not being known at compile time?? what nefarious black magic is that?
1 reply 0 retweets 0 likes -
Replying to @NicolasRinaudo
I just mean you could omit the check if it's variable, or you could choose to forbid it.
2 replies 0 retweets 0 likes -
Replying to @propensive
Sounds like something I might want to tackle when time allows, then. Mind if I bother you with questions on gitter at some point?
1 reply 0 retweets 0 likes
Of course not! Ping me here in case I don't respond on Gitter!
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.