Hacker News new | ask | show | jobs
by code_duck 4618 days 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?

1 comments

You'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.
I disagree with you about which looks worse is more confusing.