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.
I need three different sigils for function calls (#), React elements (@), and statements (%). In search of a simpler design, but this is currently what I have. Definitely more complex than Scribble, both bc domain reasons (React vs string) and lang reasons (stmt != expr).
-
-
The stmt/expr distinction doesn't seem like it requires the notation distinction -- it's more that in Scribble everything can be done with function-call syntax b/c parentheses.
-
Wanting a specific short reader abbreviation for React.createElement is an interesting constraint, which seems like it might be applicable in a lot of contexts. Perhaps different because the elements don't always have names (eg div or p).
- Show replies
New conversation -
-
-
Haven't decided on a syntax or semantics for [ ] equivalent. * How to unify JS and React calling convention? React takes named args and one anonymous arg, JS takes only anonymous args. * How to nest string language inside of JS? Can't easily pull out @-syntax like in Racket.
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