4 ms·
Once you try any languages where (almost) anything is an expression, it is hard to accept statement-oriented languages
by bafe 3y ago
Once you try any languages where (almost) anything is an expression, it is hard to accept statement-oriented languages
- the_gipsy 3y agoThat's true. But in JSX you have the extra constraint that you can't really use imperative code so this magnifies even more.
- bafe 3y agoIndeed, having if-then-else being an expression (as well as switch) would be great in JSX. It seems there's a proposal for a match expression in TC39...