JSX transpiles to human writable public API. It's a 1-to-1 conversion. Also, DSL is hard to define making it hard to say why it is or isn't!
-
-
Replying to @ryanflorence @AdamRackis
The mechanics of it aren't the bit I'm interested in (though they are interesting). I'd be dubious of any DSL definition that excluded JSX!
1 reply 0 retweets 4 likes -
Replying to @Rich_Harris @AdamRackis
it's a different syntax to call a function, hardly qualifies as a different language, no?
3 replies 0 retweets 6 likes -
JSX could be lifted entirely into the editor. You could write R.createElem(F, {}) and then when I open it in Vim, I could see <F />.
2 replies 2 retweets 15 likes -
Replying to @jordwalke @ryanflorence and
I think the definition of "Language" should exclude anything for which that is possible.
4 replies 0 retweets 5 likes -
Replying to @jordwalke @ryanflorence and
I don't understand what this could possibly mean.
3 replies 0 retweets 6 likes -
Replying to @wycats @ryanflorence and
Means I don't see new concrete syntax that has with 1-1 mapping to old syntax as "language".
2 replies 0 retweets 1 like -
Replying to @jordwalke @ryanflorence and
Does that mean that arrow functions aren't a language feature?
4 replies 0 retweets 7 likes -
Replying to @wycats @ryanflorence and
Being a language feature / characteristic and being a language are two different things.
1 reply 0 retweets 0 likes -
Replying to @jordwalke @wycats and
But I might consider that => is not enough to constitute a DSL if a 1-1 mapping is feasible.
2 replies 0 retweets 0 likes
What is the 1:1 mapping that you have in mind for `render() { return (<div><span className={foo}></span></div>) }`
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.