开髓引流是什么| 排卵期是什么意思| 松花粉对肝有什么好处| 茄子炒什么好吃又简单| 胆囊炎能吃什么食物| 牙龈出血用什么药| 农历闰月有什么规律| 细菌感染吃什么抗生素| 孕妇血糖高对胎儿有什么影响| 梦到吵架是什么意思| 镜子是什么生肖| 法图麦是什么意思| 孩子说话晚是什么原因是什么情况| 三文鱼配什么酒| 一抽一抽的打嗝叫什么| 菊花搭配什么泡茶最好| 县政府党组成员什么级别| 侵犯是什么意思| 吃得什么| 物是人非什么意思| 孟字五行属什么| 手发抖是什么原因引起的年轻人| 白头发越来越多是什么原因| 坚强后盾是什么意思| 二氧化硅是什么氧化物| 518是什么星座| 梦见别人打我是什么意思| 暴躁是什么意思| 夏季摆摊卖什么好| 吃什么降血脂和胆固醇| 屈原为什么投江| 临界是什么意思| 头眩晕吃什么药| 万象更新是什么生肖| 生活是什么意思| 慕名而来是什么意思| 人间尤物什么意思| 子鱼是什么鱼| 两色富足间是什么生肖| 梨花代表什么生肖| 病毒性肺炎吃什么药| 迎春花什么时候开| 地贫是什么病| 甲状腺是什么原因引起的| 微波炉什么牌子好| 怀孕肚皮痒是什么原因| 什么叫三观不合| 正山小种属于什么茶| 补脑吃什么食物| 头皮真菌感染用什么药| 二氧化硅是什么| 笼中鸟是什么意思| 勇敢的生肖是什么生肖| 为什么睡不着| 倒挂对身体有什么好处| 痔疮有什么影响| 互诉衷肠是什么意思| 孤独的最高境界是什么| 古代女子成年行什么礼| 笨拙是什么意思| 胃胀嗳气吃什么药最有效| 尿隐血十一是什么意思| 岁贡生是什么意思| 果酸有什么作用| 66岁生日有什么讲究| 零和博弈是什么意思| 下半年有什么节日| 脚肿吃什么药消肿| 上什么下什么| 猫驱虫药什么牌子好| 化痰止咳吃什么药最好| 哈怂是什么意思| 年柱金舆是什么意思| 舒张压偏高是什么原因造成的| 右耳朵疼是什么原因| 感冒为什么会全身酸痛无力| 神隐是什么意思| 什么时候需要打破伤风针| 一什么月牙| 脸上有红血丝是什么原因| 什么三迁| 一什么月牙| 梦到女朋友出轨是什么意思| 痔疮是什么感觉| 什么是鸡尾酒| 怀孕第一天有什么症状| 孕妇梦见水是什么意思| 阿弥陀佛是什么意思| 天刑是什么意思| 己卯日五行属什么| 蚊子为什么要吸血| 喝酒肚子疼是什么原因| 术后可以吃什么水果| 随波逐流是什么意思| jnby是什么牌子| 头晕为什么做眼震检查| 清真是什么意思啊| 去湿气吃什么食物好| 孕妇吃花生对胎儿有什么好处| 包茎不割会有什么影响| 怎么知道自己五行缺什么| 性行为是什么意思| 飞蛾为什么扑火| 长绒棉是什么面料| 多囊为什么要吃避孕药| 高筋面粉和低筋面粉有什么区别| 4月8号什么星座| cnc男装是什么档次| 胃疼想吐恶心是什么原因| 上火牙疼吃什么药| 月经量少要吃什么调理| 硬膜囊受压是什么意思| 断头婚是什么意思| 兰州人为什么要戴头巾| lake是什么意思| 细佬是什么意思| 奥康属于什么档次| 金牛座和什么星座最配| 散射光是什么意思| 什么是活检| 十点多是什么时辰| 梦见香蕉是什么意思| 验血糖挂什么科| 掰手指头响有什么危害| 手发抖吃什么药| 咳嗽有黄痰吃什么消炎药| 平安夜什么时候吃苹果| 20点是什么时辰| 今天什么冲什么| 矿泉水敷脸有什么作用| 小腹坠胀是什么原因| 狮子属于什么科| 勾引什么意思| 对象是什么意思| bni是什么意思| 为什么手会麻| 脸上长粉刺是什么原因| 丙氨酸氨基转移酶是什么| 尸臭是什么味道| swag什么意思| 孕妇能吃什么水果| 攫住是什么意思| 凉粉什么做的| 磨牙齿有什么方法可以治| 凉面配什么菜好吃| 被蜜蜂蛰了有什么好处| 今年22岁属什么生肖| 行气是什么意思| hpv42阳性是什么意思| 肝火旺是什么症状| 布拉吉是什么| 常吃山药有什么好处和坏处| 头痛吃什么药| 牙龈上火是什么原因引起的| 胃疼可以吃什么| 老睡不醒是什么原因| 肚子上长毛是什么原因| 小熊衣服叫什么牌子| 鸡犬不宁是什么意思| 肺气虚吃什么中成药| eoa是什么意思| 掉发是什么原因| 拉水便是什么原因| 子宫瘢痕憩室是什么病| 病毒感染有什么症状| 营养土是什么土| 老舍被誉为什么称号| 肾结石长什么样子图片| 深水炸弹是什么意思| 流产是什么样子的| 南昌有什么特产| 爱出汗挂什么科| 什么意思啊| cph是什么意思| 猿是什么动物| 属猪的跟什么属相最配| 中国最高学位是什么| 十一月八号是什么星座| dr钻戒什么档次| 花木兰属什么生肖| 失代偿期是什么意思| 蛋蛋冰凉潮湿什么原因| 五脏六腑是指什么| 胆囊结石需要注意什么| 1207是什么星座| 途明是什么档次的包| 手指头肿胀是什么原因| 什么是醪糟| 湿寒吃什么中成药| 支付宝提现是什么意思| 冷宫是什么意思| 四海是什么意思| 科伦是什么药| 女人性冷淡是什么原因| 有什么无什么| 脑梗吃什么中药| 胃出血有什么症状| dha有什么作用| 吃什么蛋白质含量最高| 八个月宝宝可以吃什么水果| 大姑姐最怕弟媳什么| 眼睛干涩吃什么食物好| 板蓝根长什么样| 黑洞是什么东西| 晚上喝酸奶有什么好处和坏处| 湿气是什么意思| 事后紧急避孕药什么时候吃有效| babycare是什么牌子| 祥云是什么意思| 肾怕什么| 流感为什么晚上会比白天严重| 妇科tct检查什么| 众是什么意思| 治烫伤最好的药膏是什么| 脚底板脱皮是什么原因| 郑少秋为什么娶沈殿霞| 尿酸挂什么科| 灶王爷叫什么名字| 玛瑙五行属什么| 纤维灶是什么意思| 什么叫贵妃镯| 广东人吃什么| qs是什么| 什么是道家| 身份证上的数字是什么字体| sk是什么意思| 特别嗜睡是什么原因| 医院减肥挂什么科| 什么洗面奶好用| 抑郁是什么意思| 风热感冒吃什么水果| 枝柯是什么意思| 三焦指的是什么器官| 女人月经总是提前是什么原因| 经心的近义词是什么| 猪红是什么| 落红是什么意思| 小狗不能吃什么| 离婚都需要什么| 多梦是什么原因| 免冠是什么意思| 真实是什么意思| 黑苦荞茶有什么功效| 吃什么菜减肥| 九月二十八是什么星座| 糖浆是什么| 恭敬地看的词语是什么| 长焦镜头是什么意思| 武夷肉桂茶属于什么茶| onlycook是什么牌子| mm是什么单位| 建设性意见是什么意思| 清华大学前身叫什么| 剃光头有什么好处| 什么天长地久| 1226是什么星座| 蚂蚁属于什么动物| 半夜两点是什么时辰| 四物汤是什么| 膝关节退行性变是什么意思| 虫草花是什么| 胃泌素偏低是什么原因| 缘分是什么意思| 凌晨是什么时辰| 百度

贵州黔西南通报6起典型案例 严查纪检“灯下黑”

From: Date: Thu, 02 Jan 2014 00:07:36 +0000
Subject: Re: [PHP6] Function name consistency
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-70950@lists.php.net to get a copy of this message
百度 他在那天的日记里兴奋地写下两句诗:“风雪残留犹未尽,一轮红日已东升。
On 1/1/14, 3:26 PM, Rowan Collins wrote:
> On 28/12/2013 08:43, Ralf Lang wrote:
>> When redesigning for PHP6, shouldn't most functions move to a class or
>> namespace in the first place? 
> 
> You make it sound like such a redesign is an obvious and achievable goal
> for the next "major" release of PHP. Neither PHP 5 nor the abandoned PHP
> 6 branch (Unicode strings, plus the features which were released as 5.3
> and 5.4 instead) attempted anything so radical, and the more you change,
> the harder it is to persuade people to migrate.
> 
> I suspect this has been discussed a lot of times, although I've only
> joined the list recently. A search through the archives before taking
> this discussion further would probably avoid repeating arguments that
> have been had before, unless anyone has a good summary somewhere?
> 
> Not that I'm against moving towards consistency per se, but I wouldn't
> want to assume that whatever stopped it gaining traction in the past no
> longer applies.

You also need to realize that there is consistency. It is just
consistency from a different angle. PHP from day one was always a very
thin wrapper on top of dozens, now hundreds, of underlying libraries.
The function names and argument order, for the most part, were taken
directly from these underlying libraries. So if you were familiar with
MySQL's C API, for example, you would instantly be able to navigate
PHP's mysql functions to the point where we barely needed PHP MySQL
documentation because MySQL's C library documentation covered it
function for function. And for many of the str functions (the ones
without an underscore), try typing: man
strlen/strchr/strrchr/strtok/strpbr/strspn... at your Linux command line
prompt.

This approach covers the majority of the functions in PHP. The others
are somewhat haphazard because it was not always obvious how to name
these given there was no underlying API to mimic.

So, whenever I see these, "let's just rename everything" posts, I never
see the fact that most of these functions are deeply ingrained in the
muscle memories of a lot of people addressed. And it is in our muscle
memories, not because of PHP, but because we still live in a world
written in C. As soon as you venture outside the world of PHP and
scripting languages, you hit this world.

That doesn't mean we can't try to address this, but simply renaming
everything is not the answer.

-Rasmus



Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc

Thread (46 messages)

« previous php.internals (#70950) next »
用什么洗头白发能变黑 地图舌吃什么好得快 污蔑是什么意思 蜂蜜加白醋有什么功效 阿莫西林不能和什么药一起吃
做梦流产了是什么意思 囡是什么意思 10周年结婚是什么婚 女人每天喝什么最养颜 帕金森吃什么药最好
胃不好吃什么养胃水果 鱼腥草是什么 塑料是什么材料 不什么下什么的成语 属猪男配什么属相最好
龙延香是什么 尿道口下裂是什么样子 什么运动瘦肚子 病人打白蛋白意味着什么 肝肾阴虚吃什么药
后背筋膜炎吃什么药hcv9jop1ns4r.cn 生理期能吃什么水果hcv7jop5ns6r.cn 胃寒吃什么hcv9jop5ns7r.cn 晕车药什么时候吃最好hcv8jop2ns9r.cn 黄疸高是什么原因hcv9jop7ns4r.cn
小孩尿不出来尿是什么原因hcv8jop7ns0r.cn 胆囊壁毛糙吃什么药效果好hcv9jop6ns9r.cn mido手表什么档次hcv9jop8ns3r.cn 忘年恋是什么意思hcv9jop2ns8r.cn 7月24是什么星座hcv8jop9ns5r.cn
保险费率是什么hcv8jop3ns9r.cn 汗多尿少是什么原因hcv9jop5ns9r.cn 癌胚抗原高是什么意思hcv9jop5ns5r.cn 洞房是什么意思luyiluode.com s 是什么意思hcv9jop1ns5r.cn
林俊杰什么时候出道的hcv8jop9ns2r.cn 脚底发黄是什么原因cl108k.com 双肺纹理增多是什么意思严重吗hkuteam.com 吃避孕药有什么好处hcv8jop9ns6r.cn 寮房是什么意思hcv8jop8ns6r.cn
百度