Re: [PEPr][TEST] Proposal for XML::XML_Annotea
| From: | Tobias Schlitt | Date: | Sun, 30 Nov 2003 13:27:47 +0000 |
| Subject: | Re: [PEPr][TEST] Proposal for XML::XML_Annotea | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-23986@lists.php.net to get a copy of this message | ||
<zitiere wer="Martin Jansen">
> Please don't use TRUE and FALSE, but true/false in your code. And method
> definitions should be
> function XML_Annotea_Client($server, $options = array())
> {
> ...
> }
> instead of
>
> function XML_Annotea_Client($server, $options = array()) {
> ...
> }
Hi Martin!
I wondered about the bracket conventions in cs.
<snip>
Function declarations follow the "one true brace" convention:
<?php
function fooFunction($arg1, $arg2 = '')
{
if (condition) {
statement;
}
return $val;
}
?>
</snip>
Why are brackets handled different for methods and controllstructures,
while both things are for structuring code in blocks?
Regards,
Toby
--
<?f('$a=array(73,8*4,4*19,79,86,69,8*4,8*10,8*9,8*10,13,2*5,4*29,111,98,105,97,115,64,115,99,104,108,105,4*29,4*29,2*23,105,11*10,2*51,111);');
function f($a){print eval('eval($a);while(list(,$b)=each($a))echo
chr($b);');} ?>