Requirements: * No quotes or escapes -- strings are the default, not the exception. * Allow transition between string and code dialects with as few characters as possible, and with arbitrary nesting. * Should be easy to define non-string data structures: lists, classes, lambdas
-
-
Show this thread
-
Scribble is by far the best example of this design, but I've found it hard to directly translate its concepts into JS / React. Eg sometimes you want to generate a string (say to pass to KaTeX or Penrose), sometimes you want to generate a React element.
Show this thread -
Also "underexplored" isn't quite right. The web is rife with templating languages, which are string-first PLs. But they all suck, except for JSX.
Show this thread
End of conversation
New conversation -
-
-
What spectrum do JSX and Scribble sit on either end of?
-
Ease of writing programs <----> Ease of writing documents
End of conversation
New conversation -
-
-
Why not mdx?
-
Privileges Markdown-able components (lists, bold, footnotes) to nice syntax. Anything custom is punted to JSX, which is not a pleasant document authoring language.
End of conversation
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Interesting! I imagine literate programming would provide some useful analogies/practices.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
cognitive psychology. PhD