YSLD supports defining aliases for reusable code snippets. However, it does not run validation on these snippets. There are some technical challenges implementing this:
- Validating the alias in-place poses the problem of context: A snippet that is valid when substituted in one place may not be when substituted elsewhere.
- Validating in-context poses the problem of memory: The YSLD validator is stack-based and does not store data not relevant to the current stack (such as aliases). Adding functionality to do so may be non-trivial.
|