3 ms·
The crazy part is that there's not a really good reason why we couldn't make if..else function as either a statement or expression depending on the context. I t
by hajile 3y ago
The crazy part is that there's not a really good reason why we couldn't make if..else function as either a statement or expression depending on the context. I think there's a proposal to do that.
- bafe 3y agoIndeed, at least there's a TC39 proposal for that. It should be the default for all statements and it's shocking that python went to define the new match clause to be just a statement and not an expression