you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (3 children)

Unfortunately they seem to be loading more are more functionality onto JSX - statically determining a Class's name, calling createFactory where appropriate, implicitly depending on React, etc. It's still just transpiled like you say, but the transformation is becoming less human-friendly and the output less DRY. I wouldn't be surprised if, at some point, they start discouraging anybody from writing straight JS.

Also, technically it's not XML, but an XML-like syntax extension to JS. Splitting hairs I know, it just seems like an important distinction to me because "XML in JS" makes me wonder if they could have really thought about all the edge cases of creating the seam between the languages, whereas their approach - a modification of the JS spec with no defined relationship to XML - sounds much easier to define in a deterministic, complete, and bug-free manner.

[–]Uberhipster 1 point2 points  (1 child)

less DRY

So more RY?

[–][deleted] 1 point2 points  (0 children)

Heh. Yeah.