← Back to context

Comment by dalemhurley

1 day ago

The semi colon allows you to have lots of flexibility in how you present your code, that is if you still read code, I seem to be an oddity now.

I'd really like it if PHP switched to Perl's grammar rule where semicolon is a statement separator rather than a terminator. It already does this in a fashion within <?php ?> tags in that statements in those don't have to end with a semicolon. I think it just blindly inserts a semicolon, but that does work -- if PHP did that whenever it saw a `}` token, it should have the same effect.