Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Once you try any languages where (almost) anything is an expression, it is hard to accept statement-oriented languages


That's true. But in JSX you have the extra constraint that you can't really use imperative code so this magnifies even more.


Indeed, 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...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: