IF Function Exists...then

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Function names don't bother me. What really irritates me is that I use the string and array functions all the time yet I *still* have to look in the manual almost every time because they can't stick with a standard on the order of parameters for needle, haystack :x
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

yea that is really annoying.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

yeah. needle haystack consistency is lame. i also think underscores in function names should be consistent.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Now you guys are catching on the what I am talking about...

I had read in a meeting notes or something on PHP6 that there was talk of standardizing the use of needle and haystack functions so they all worked the same. The group decided that since there were not that many functions that used haystack, needle, they would leave them the way they are.

Nobody talked about the underscored function names though. That's be nice.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

Everah wrote:The group decided that since there were not that many functions that used haystack, needle, they would leave them the way they are.
I think it was something like 6 out of 50. And to fix it, they'd either have to totally break all old scripts, or add MORE cruft to the language to work around accepting either - and having undefined/unpredictable behavior in many cases.

Frankly, not worth it.
Everah wrote:Nobody talked about the underscored function names though. That's be nice.
Never bothered me.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I understand their reasoning. And the underscored function names really never bother me either, but they do seem a bit inconsistent. Like I said, for the cost, I can't complain.
Post Reply