Re: svn: /phpdoc/en/trunk/ appendices/history.xmlappendices/oop4.xml language/namespaces.xml language/oop5/inheritance.xmllanguage/oop5/interfaces.xml
language/oop5/iterations.xml language/oop5/serialization.xmllanguage/references.xml re

From: Date: Tue, 27 Mar 2012 20:54:48 +0000
Subject: Re: svn: /phpdoc/en/trunk/ appendices/history.xmlappendices/oop4.xml language/namespaces.xml language/oop5/inheritance.xmllanguage/oop5/interfaces.xml
language/oop5/iterations.xml language/oop5/serialization.xmllanguage/references.xml re
References: 1  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9961@lists.php.net to get a copy of this message
On 22-03-2012 16:39, Hannes Magnusson wrote:
Modified: phpdoc/en/trunk/language/oop5/iterations.xml =================================================================== --- phpdoc/en/trunk/language/oop5/iterations.xml 2012-03-22 14:59:17 UTC (rev 324458) +++ phpdoc/en/trunk/language/oop5/iterations.xml 2012-03-22 15:15:20 UTC (rev 324459) @@ -69,7 +69,7 @@
    <link linkend="language.oop5.visibility">visible</link>  variables that can be
    accessed. To take it a step further you can implement one
    of PHP 5's internal<link
- linkend="language.oop5.interfaces">interface</link> named + linkend="language.oop5.interfaces">interfaces</link> named
    <varname>Iterator</varname>. This allows the object to decide what and how
"You can implement one of PHP 5's internal interfaces named Iterator"? are there multiple interfaces literally named "Iterator"? That doesn't sound correct at all? -Hannes
Yannick's text was actually correct. The word interfaces isn't in its plural form because there are multiple iterator interfaces, but due to usage of the "one of [collection]" construct. A collection is by definition more than a single item, and as such must be written in plural form. So "one of PHP 5's internal interfaces" is correct, while the singular form is not. I agree though, it sounds odd. We could change it to something like: "You could take it a step further and implement it using a PHP 5 internal interface called Iterator." or "You could take it a step further and implement it using PHP 5's internal interface Iterator." though that might sow confusion as to the exact name of the interface (is it Iterator? interface iterator? internal interface iterator?) So I vote to revert the reverted change back to the "wrong" change :p - Tul

« previous php.doc.cvs (#9961) next »