it's easy to implement in a babel transform (although haven't gone looking for edge cases), wondering if lang prevents that
-
-
Replying to @jamiebuilds @thejameskyle
I don't think it should be a problem. We assumed we' be able to do this in do expressions. <div>{do{ if (x) { <div/> } }</div>
1 reply 0 retweets 1 like -
Replying to @sebmarkbage
@jordwalke https://astexplorer.net/#/gist/48854a60ab0c9b4d24ed267a9e4374c2/2f16c0b93e82b5450615c81fb979d32c4ed32dad …1 reply 0 retweets 0 likes -
Why does the first JSX in the second render not have an implicit return?
1 reply 0 retweets 0 likes -
Replying to @sebmarkbage @jordwalke
Because it isn't the last item in the function. similar to http://coffeescript.org/#try:foo%20%3D%20-%3E%20%0A%20%201%0A%20%202 …
1 reply 1 retweet 1 like -
I see. In loops would it behave like completion value or break on first iteration?
2 replies 0 retweets 0 likes -
Would do expressions be special cased? `let x = do { <div /> }; <span />;` Is it div or span?
2 replies 0 retweets 0 likes -
Replying to @sebmarkbage @jordwalke
translated into: function render() { let a = do { <div/>; }; return <span/>; }
1 reply 0 retweets 0 likes -
I'm not sure if you're supposed to be able to add a return inside a do expression. Babel disallows it at least
@wycats ?1 reply 0 retweets 0 likes -
Replying to @jamiebuilds @thejameskyle and
The proposal
@littlecalculist presented allowed it. For now.2 replies 0 retweets 0 likes
the proposal will support it forever. The committee may make a mistake. But let's not
-
-
Replying to @wycats @thejameskyle and
There were concerns but I'm supportive.
0 replies 0 retweets 2 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.