This looks awesome: https://github.com/babel/babel/pull/3376 …. I remember arguing this should exist with @glenmaddern, even called it CSSX and everything 
-
-
Replying to @markdalgleish
@markdalgleish@glenmaddern i'm conflicted. what do you think it offers over tagged template literals?2 replies 0 retweets 0 likes -
Replying to @sebmck
@sebmck@glenmaddern you could say the same thing about JSX, right? The reason JSX is so great is because it's code, not a big string.1 reply 0 retweets 0 likes -
Replying to @markdalgleish
@sebmck@glenmaddern any CSSX implementation would need to have a similar ability as JSX, to interoperate well with regular JS2 replies 1 retweet 1 like -
Replying to @markdalgleish
@sebmck@glenmaddern like how you can map over an array and output JSX, you should be able to do the same with CSSX1 reply 0 retweets 0 likes -
Replying to @markdalgleish
@markdalgleish@glenmaddern you can interpolate with template literals though? the reasons for JSX not using template literals don't apply1 reply 0 retweets 0 likes -
Replying to @sebmck
@sebmck@glenmaddern but then you can't get proper syntax highlighting for it, right?2 replies 0 retweets 0 likes -
Replying to @markdalgleish
@markdalgleish@glenmaddern A syntax highlighter could easily custom highlight a template literal if it was prefixed with a tag like cssx``.1 reply 0 retweets 1 like -
Replying to @sebmck
@sebmck@glenmaddern with template strings I'm building a big string, but I want it to feel like building a data structure, like JSX1 reply 0 retweets 0 likes
@markdalgleish @glenmaddern tagged template literals don't need to return strings though, it can return anything
-
-
Replying to @sebmck
@sebmck@glenmaddern sure, but my input into the function is a big string, though2 replies 0 retweets 0 likes -
Replying to @markdalgleish
@markdalgleish@glenmaddern tagged template literals call the function with each quasi string and expression in arrays for you to process2 replies 0 retweets 1 like - 1 more reply
New conversation -
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.
he/him 