@markdalgleish @glenmaddern i'm conflicted. what do you think it offers over tagged template literals?
-
-
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 -
Replying to @markdalgleish
@markdalgleish@glenmaddern tagged template literals don't need to return strings though, it can return anything1 reply 1 retweet 2 likes -
Replying to @sebmck
@sebmck@glenmaddern sure, but my input into the function is a big string, though2 replies 0 retweets 0 likes
@markdalgleish @glenmaddern tagged template literals call the function with each quasi string and expression in arrays for you to process
-
-
Replying to @sebmck
@sebmck@markdalgleish@glenmaddern look at Inferno JS for a history of how far you can get with tagged templates (pretty far)0 replies 0 retweets 2 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Replying to @sebmck
@sebmck@markdalgleish oh I didn’t realise. I thought interp happened first. That could be enough then.0 replies 0 retweets 0 likesThanks. 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.
he/him 