Re: Flexible function naming

From: Date: Mon, 16 Dec 2013 09:44:24 +0000
Subject: Re: Flexible function naming
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-70655@lists.php.net to get a copy of this message
Tjerk Meesters wrote:
This small change would allow coding teams to create a consistent code
base based on 'their' guidelines. Motto: "Have it your way!". No. What is wrong with having a consistent code base all the way, also
covering legacy code? I consider this a pretty neat language feature.
Consistency doesn't stop at how functions are named; there are enough functions that have an unintuitive order of function parameters, this isn't addressed in your proposal. You are right. There is more reasons for the inconsistent appearance of a large PHP code base. The one that you mentioned is IMHO a major annoyance while authoring code, it is only minor when reading code, in particular if you keep the numbers of function arguments small.
If it were just the naming you wish to address, I would suggest writing an extension first and see how that catches on. Thanks, that is helpful. I look into that!
Robert

« previous php.internals (#70655) next »