3 ms·
> But if you tell me this is a superset of C that uses // as a division operator, [...] Just in case, you are referring to C89, right? (Such language can't be
by lifthrasiir 3y ago
> But if you tell me this is a superset of C that uses // as a division operator, [...]
Just in case, you are referring to C89, right? (Such language can't be a superset of C99 or later.)
> That's what this says to me.
I haven't written any PHP for years, but I think `<?` was already heavily discouraged back when I was still doing PHP things. Any surviving PHP codebases should have a similar guideline (for example, [1] for WordPress).
[1] https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#no-shorthand-php-tags https://developer.wordpress.org/coding-standards/wordpress-c...
- int_19h 3y agoI remember it being discouraged 20 years ago.
- pests 3y agoYep pretty much since it was released
- chuckadams 3y agoThe `<?` isn't the problem, it's the closing `}?>`. Processing instructions don't nest. They're also xml, not html, so jolly good luck getting WHATWG to put them into the HTML standard.