rfc:counterargument:deprecate_php_short_tags
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:counterargument:deprecate_php_short_tags [2019/08/05 22:42] – created zeev | rfc:counterargument:deprecate_php_short_tags [2019/08/05 22:55] – zeev | ||
---|---|---|---|
Line 12: | Line 12: | ||
==== Overview ==== | ==== Overview ==== | ||
- | The motivation for removing short tags as it is illustrated in the V2 RFC is quite weak. Essentially - it does not present //**any**// new motivations that did not exist 20+ years ago, when this syntax was first introduced. | + | The motivation for removing short tags as it is illustrated in the V2 RFC is quite weak. Essentially - it does not present //**any**// new motivations that did not exist 20+ years ago, when this syntax was first introduced. |
- | It's certainly possible to argue that the wrong decision was made back then - but it's very difficult to justify a position claiming that it' | + | It's certainly possible to argue that the wrong decision was made back then - but it's very difficult to justify a position claiming that the situation is so bad that we must now remove this syntax |
- | The one thing that did change, which makes it even more difficult to justify this position, is that unlike back then, when PHP was rounding error in terms of language popularity, today - it is one of the most widely used languages in the world. | + | The one thing that did change, which makes it even more difficult to justify this deprecation, is that unlike back then, when PHP was rounding error in terms of language popularity, today - it is one of the most widely used languages in the world. |
==== Analyzing The Motivations For Deprecation ==== | ==== Analyzing The Motivations For Deprecation ==== | ||
Line 27: | Line 27: | ||
=== Counterpoint: | === Counterpoint: | ||
- | Short tags were, from the get-go, //**never meant for being used in portable code to begin with**// | + | Short tags were, from the get-go, //**never meant for being used in portable code to begin with**// |
- | Virtually all (if not literally all) projects that are meant for redistribution - be they apps or frameworks - have rules that prohibit the use of short tags. Short tags are used, de-facto, exclusively for non-portable code by people and companies that have complete control over their stack. | + | Virtually all (if not literally all) PHP-based |
In reality, deprecating short tags does not have any meaningful contribution to making PHP codebases more portable - the ones who need to be portable are already not using this syntax, and the ones which are not - aren't meant for distribution to begin with. | In reality, deprecating short tags does not have any meaningful contribution to making PHP codebases more portable - the ones who need to be portable are already not using this syntax, and the ones which are not - aren't meant for distribution to begin with. |
rfc/counterargument/deprecate_php_short_tags.txt · Last modified: 2019/08/05 23:09 by zeev