Resources are named using pathnames
When we refer to a resource, which may be a file on disk or built into the Subplot binary, we use a pathname. When code queries a Metadata
, it gets a pathname. It can try to load that from disk, even though the name happens to refer to a built-in file. This is an error the type system is meant to prevent.
Proposal: we add a type that refers to a resource name such that it can't be used to load a file, only to look up the resource. If the resource isn't built in, the look-up code can turn it into a pathname and look in the file system.