Schema Next Steps #1418
Unanswered
dendron-bot
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Source
Notes
General impression: I like the simplification proposal. It makes syntax less verbose and gives a clear visual about what nodes are used or not used.
Further thoughts:
tenants
Since schemas are a core part of the dendron language, lets take some time to make sure we start with the right goals in mind and work backward from tenants. See the typescript goals 1 as a good starting point. Think of our landing page as the amazon press release. Schemas are the type system for general knowledge. How do we deliver on this promise?
Below I've listed a starting point below, adopted from the typescript design goals 1
1. Identify constructs that are likely to be errors.1. Impose no runtime overhead on emitted programs1. Align with current and future ECMAScript proposals.1. Preserve runtime behavior of all JavaScript code.1. Aggressively optimize the runtime performance of programs. Instead, emit idiomatic JavaScript code that plays well with the performance characteristics of runtime platforms.1. Add or rely on run-time type information in programs, or emit different code based on the results of the type system. Instead, encourage programming patterns that do not require 1. run-time metadata.1. Provide additional runtime functionality or libraries. Instead, use TypeScript to describe existing libraries.extensibility
One use case we want to support is making it easy for users to share, remix and built upon existing schemas. how do we make the schema design here compatible?
imports
How will [[imports|dendron://dendron.dendron-site/dendron.topic.schema#imports]] be supported? consider multi-vault scenarios
separating matching from behavior
one of the current limitations with schema imports is that you can't attach new behavior to existing matches. take the following example
for our user journals, we should support the ability to add templates and additional functionality to matches
rfc 12 - schema improvements
We have an existing schema improvement rfc, can we make sure the ideas from here can be incorporated into the new design -> [[Types|dendron://dendron.dendron-site/dendron.rfc.12-schema-improvements.types]]
Next Steps
Footnotes
TypeScript Design Goals · microsoft/TypeScript Wiki ↩ ↩2
Beta Was this translation helpful? Give feedback.
All reactions