> While I can't immediately think of a practical problem with this, I'm hesi > tant at the idea of adding yet more ways of quoting strings; it means more > for users to learn, more for third party parsers to implement (including ex > actly the syntax highlighting tools you're going to help), and in the worst > case, more edge cases that can lead to security issues
More for users to learn? Don't you mean less, haha? This is an arbitrary limitation of heredoc, that we can remove (it might not be arbitrary from a yacc perspective, someone would have to explain that if so). >I don't know about other editors, but PhpStorm at least also recognises an >in-line comment explicitly labelling any string, which if anything seems m >ore explicit: > >$query = /** @lang mysql */"SELECT * FROM foo"; Pja. I wouldn't call it more or less explicit than heredoc notation, personally. Olle -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php