It looks like the last time this was discussed was October of 2003, over
the course of about five emails. I don't see anything in the archives
about it since then. Here's what I'd like to suggest.
some_function($a, 'B', :check TRUE)
function some_function($first, $second, :check $key1 = FALSE, :f
Actually, that would be acceptable, since you lose the bulk of array().
The only thing that remains a problem is that if you add another
(non-named) parameter, you still need to worry about the relative
positions in all of your functions. Now that I think about it, that's
actually a bigger com
The major benefit of keyword arguments doesn't occur when you're writing
functions, it occurs when you're re-writing them. I can't count the
number of times where I've thought "My xyz function already does something
almost exactly like what I need... if I just passed it an extra parameter,
I c
Okay, so keyword arguments probably won't be implemented. "Ice cube's
chance in hell" is the phrase I recall being thrown around. I have two
questions:
1. Why not?
2. Where do I start with my own copy of PHP to put it in? (The reason I
asked about it initially is that I thought it'd be a fun
I was actually asking which part of the PHP code I'd want to modify. I
haven't been able to find an overview of what all the different files are
for - possibly I'm just not looking in the right place. Does such an
overview exist that I could read over?
Secondly, I'm not suggesting a fork - I
Oh baby, oh baby. I was undecided (and really just didn't care about it
either way) but when Marc put it this way (see the bottom line there) I was
sold. That's just sexy.
-Dan, who perhaps gets a bit *too* into this sort of thing...
> I am interested in the new construct for the exact same rea
Why not just call it the issetor, or the setor operator? Also, why does
www.php.net/ternary not link to what one would assume it might link to? We
could do the same with www.php.net/setor.
Dan
> But the fact still remains that if we did go with
> this syntax, we could and probably should find a
I'm glad you spoke up first Chris, because I have questions in a similar
vein. Namely, how can I help? I have a few years of C under my belt, but
I never got to the point where I'd be comfy hacking PHP. (I'd like to get
there eventually, I'm just not there yet.)
So, am I being lazy, have I m