Re: Bug #2341: expression evaluation - improvement

From: Date: Tue, 21 Sep 1999 16:34:05 +0000
Subject: Re: Bug #2341: expression evaluation - improvement
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-11153@lists.php.net to get a copy of this message
tsf@post.cz wrote: > if everybody was thinking in this way, there would be no C-like ternary operator - why can't you just use if/else? > there wouldn't be any methods in objects (why not to use pointers to functions?) there wouldn't be objects at all (there ain't anything to them you couldn't achieve by using structs). > > php is language which (I believe) should make your life easier, any constraints are limiting. > > simply put, the programming gets more and more elegant and convenient; and as I am well acquainted with the theory of computer languages and interpreters, I don't find this feature difficult to write. why shouldn't it be possible then? -- End of excerpt from tsf@post.cz You are taking this to the extreme. What happens when you need to use that expression again, type it in over and over? The example you gave would be best solved by having that array in a variable. -Andrei * George Orwell was an optimist. *

« previous php.dev (#11153) next »