2 ms·
This is the first true “PHPism” I’ve seen in a “real language”. (Is there a name for “we didn’t want the general thing (e.g. assignment expressions) but we want
by malf 5y ago
This is the first true “PHPism” I’ve seen in a “real language”. (Is there a name for “we didn’t want the general thing (e.g. assignment expressions) but we wanted one narrow subset of it (serial assignment), so we implemented that, but with different semantics for no good reason”?)
- oxson 5y agoPython does have assignment expressions these days, too. They have some restrictions though, they’re not allowed in all positions that a ”standard” expression would be.