@propensive thoughts on using contextual for compile time checking a resource's existence / validity?
Validity: totally! Existence: sure, provided the existence test at compile-time holds at runtime.
-
-
It should - if the resource is in the CLASSPATH at compile time, it can reasonably be expected to also be there at runtime
-
The one possible limitation is that resource paths would have to be constant strings, not something like s"/path/to/$res", for example
- Show replies
New conversation -
-
-
As an example, I would use Contextual to check something exists on the classpath, but maybe not to check a file exists on the hard disk.
-
Oh right, sorry, I meant resource as in, in `/src/scala/main/resources`
- Show replies
New conversation -
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.