Re: php suggestion

From: Date: Mon, 14 Feb 2005 16:29:16 +0000
Subject: Re: php suggestion
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-14919@lists.php.net to get a copy of this message
Hey Ante, Ante Drnasin wrote:
I would just like to hear you oppinions about something like this...(please don't shoot me :) ) ex1: function AddToDb(mysql_scape_string($text)) {
I'd say it's not too useful but opens up a can of worms: - You're adding code to a declaration, IMHO confusing - How complicated code is allowed, e.g. what happens with function foo(bar($p1, $p2)) { or function foo($p2->bar($p1), $p1->bar($p2)) { I think we should keep the language simple and stay with $text = mysql_scape_string($text); at the beginning of the function. That way everybody understands what's going on. - Chris

« previous php.internals (#14919) next »