4 ms·
I don't use that syntax for control structures at all. It's like the worst take on Python ever. JavaScript uses curly braces. Any designer who knows anything a
by code_duck 13y ago
I don't use that syntax for control structures at all. It's like the worst take on Python ever.
JavaScript uses curly braces. Any designer who knows anything about coding is going to have to learn JavaScript. How about one syntax?
- adamors 13y agoYou're missing the point. <?php if($condition){ ?> and just an <?php } ?> gets illegible and confusing very fast, even from 20 lines of HTML in between. And that isn't even that much. endif, endfor, endforeach etc. are much more noticeable, plus every editor/IDE worth their salt will highlight it properly.
- code_duck 13y agoI disagree with you about which looks worse is more confusing.