Re: Re: ctype function (re?)naming

From: Date: Wed, 07 Mar 2001 03:57:31 +0000
Subject: Re: Re: ctype function (re?)naming
References: 1 2 3 4 5 6  Groups: php.dev php.qa 
Request: Send a blank email to php-dev+get-48124@lists.php.net to get a copy of this message
Waldschrott wrote: > > Overall I think this is very good. I have a few problems with it (all > > prefixed with a large IMHO :)... > > agreeing in anything sterling mentioned, except and in addition this: > > >> GETTEXT > >> bindtextdomain > >> dcgettext > >> dgettext > >> gettext > >> textdomain > > is there any reason not to change them? Simplicity - the names are consistent with each other and they match the names of the gettext C functions. > >> IISFUNC (Not in manual yet) > >> iis_addserver -> iis_add_server > >> iis_getdirsecurity -> iis_get_dir_security > >> iis_getscriptmap -> iis_get_script_map > >> iis_getserverbycomment -> iis_get_server_by_comment > >> iis_getserverbypath -> iis_get_server_by_path > >> iis_getserverright -> iis_get_server_right > >> iis_getservicestate -> iis_get_service_state > >> iis_removeserver -> iis_remove_server > >> iis_setappsettings -> iis_set_app_settings > >> iis_setdirsecurity -> iis_set_dir_security > >> iis_setscriptmap -> iis_set_script_map > >> iis_setserverright -> iis_set_server_right > >> iis_startserver -> iis_start_server > >> iis_startservice -> iis_start_service > >> iis_stopserver -> iis_stop_server > >> iis_stopservice -> iis_stop_service > > > > hrrm. these names seem long, perhaps we can shorten them? > > how? :) I tried to find some shorter names, but then you would have to omit parts of it, > eg. > iis_get/set_right (omitting server) > iis_get/set_state (omitting service) > iis_remove (omitting server) > iis_add (omitting server) > iis_start/stop (omitting server) > ..maybe As lng as the abbr. don't aff. readab. ;) > >> xslt_output_begintransform -> xslt_output_begin_transform > >> xslt_output_endtransform -> xslt_output_end_transform > > xslt_begin/end_transform ? Ditto :) > >> gethostbyaddr ? > >> gethostbyname ? > >> getpeername ? > > ok. > > >> socket_get_status > >> socket_set_blocking > >> socket_set_timeout > > if we name the the socket extension functions socket_* we have a > confusion here (these functions are from standard) We could always use sock_ ... > >> zzip_entry_compressedsize -> ..._compressed_size > >> zzip_entry_compressionmethod -> ..._compression_method > > ok. Thanks for the feedback Andre! :) --zak

« previous php.dev (#48124) next »