String-first programming languages seem to be a really interesting and underexplored design space. I want something halfway between JSX and Scribble, but not MDX.
-
Show this thread
-
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
1 reply 0 retweets 4 likesShow 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.
2 replies 0 retweets 2 likesShow 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.
2 replies 0 retweets 5 likesShow this thread -
-
Replying to @mvsamuel
Will Crichton Retweeted Will Crichton
Best in show 15 years ago. But these days, it isn't as well-designed a PL as JS, so you can't do this:https://mobile.twitter.com/wcrichton/status/1465390600468013065 …
Will Crichton added,
1 reply 0 retweets 1 like
(yes you can do foreach, but it's not the same)
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