com php-langspec: Simplify `print` rule.: spec/10-expressions.md
| From: | Nikita Popov | Date: | Sat, 12 Nov 2016 14:02:02 +0000 |
| Subject: | com php-langspec: Simplify `print` rule.: spec/10-expressions.md | ||
| Groups: | php.standards.cvs | ||
| Request: | Send a blank email to standards--cvs+get-359@lists.php.net to get a copy of this message | ||
Commit: e85e5508ca29872b60a59c7f37684f13d07e4533
Author: Ivan Enderlin <ivan.enderlin@hoa-project.net> Sat, 12 Nov 2016 14:18:04
+0100
Committer: Nikita Popov <nikic@php.net> Sat, 12 Nov 2016 15:02:02 +0100
Parents: a6ae806a1f4f6ade361d4ffc80b8a4bc1b5d61b7
Branches: master
Link: http://git.php.net/?p=php-langspec.git;a=commitdiff;h=e85e5508ca29872b60a59c7f37684f13d07e4533
Log:
Simplify
print rule.
print 42 is the same than print(42), which is the same than
print (42). Just like echo, it is possible to consider that
parenthesis belong to the expression instead of to the print
intrinsic.
Changed paths:
M spec/10-expressions.md
Diff:
diff --git a/spec/10-expressions.md b/spec/10-expressions.md
index bd1ac0b..5e8af86 100644
--- a/spec/10-expressions.md
+++ b/spec/10-expressions.md
@@ -688,7 +688,6 @@ list(0 => list($x1, $x2), 1 => list($x2, $y2)) = [[1, 2], [3, 4]];
<pre>
<i>print-intrinsic:</i>
print <i>expression</i>
- print ( <i>expression</i> )
</pre>
**Defined elsewhere**