intermediate Medium/Resource refactoring

This commit is contained in:
2024-12-28 18:34:40 -08:00
parent b726f495b6
commit 090c122c60
12 changed files with 218 additions and 108 deletions

11
docs/reference/uri.md Normal file
View File

@@ -0,0 +1,11 @@
Quick thoughts and ideals:
- Schemes are compositional, "wrapping" super contexts: `c+b+a://a/b/c`
- The scheme communicates the target type (above is `c`)
- URIs can be arbitrarily relative so long as they're resolved in the right contexts.
Above, `c+b://b/c` can be resolved in the context of `a://a`
- URIs are resolved by unwrapping schemes and resolving in to out
- URL params can apply only to the target type (this is the most consistent and probably
not too restrictive)
- Trajectories from one scheme to another can be inferred from the type hierarchy; there
may be many