You forgot my proposal
Proposals: Syntax and Semantics
explicit âshow codeâ semantics | explicit âexecute codeâ semantics | non-explicit, do what is usually expected / most natural | |
---|---|---|---|
A | mermaid |
!mermaid |
|
B | mermaid |
draw:mermaid |
|
C | mermaid_src |
mermaid |
|
D | mermaid = |
mermaid () ormermaid ( ⌠) |
mermaid |
-
A: not bad, but breaks existing things, and ârare case should not âpoisonâ major casesâ
-
B: readable, but uses English, and same problems as
A
-
C: reflects usage frequency, but then some users will naturally start using
markdown_src
and evenjavascript_src
, so those should be supported. Also, for those things likejavascript
andmarkdown
that by default are âshow codeâ, how do you say âexecute codeâ? Will we then addmarkdown_draw
? If we do, weâve ended up doingD
, but not as nicely. -
D: semantics of non-explicit form reflects usage frequency. Author can always choose to be explicit. Is consistent and logical (semantic explicitness in both cases is syntactically explicit). Does not use English. Tokens make sense. Uses second token rather than modding the first, so more backward compatible, degrades gracefully in vast majority of cases.