未来让我知道所以我可以跳船,谢谢, mrbWill php 6 do strong typing and/or namespaces?I was shocked to find out today that there are some people who actuallyargue that weak typing is somehow better. I didn''t even know there wasa debate. Shocking. That''s like arguing that square tires are betterthan round.Anyway if anyone knows that php is going to intentionally stay weak inthe future let me know so I can jump ship, thanks,mrb推荐答案 2005年5月23日15:33:58 -0700, dt ****** @ hotmail.com 写道:On 23 May 2005 15:33:58 -0700, dt******@hotmail.com wrote: php 6会做强打字和/或命名空间吗? AFAIK还没有确定的PHP 6功能集。 今天我发现有些人确实感到震惊认为弱打字在某种程度上更好。我甚至都不知道有辩论。令人震惊的。这就像争辩说方形轮胎比圆形更好。 无论如何,如果有人知道php会故意保持弱势,那么未来让我知道所以我可以跳船,谢谢,Will php 6 do strong typing and/or namespaces?AFAIK there''s no decided feature set for PHP 6 yet.I was shocked to find out today that there are some people who actuallyargue that weak typing is somehow better. I didn''t even know there wasa debate. Shocking. That''s like arguing that square tires are betterthan round.Anyway if anyone knows that php is going to intentionally stay weak inthe future let me know so I can jump ship, thanks, 如果PHP强力输入,那将是对 语言的根本性改变。它根本不可能发生恕我直言。 (你可能也希望和Perl一起离开)。 - Andy Hassall /< an * *@andyh.co.uk> /< http://www.andyh.co.uk> < http://www.andyhsoftware.co.uk/space>空间:磁盘使用情况分析工具If PHP ever went strongly typed it would be a fundamental change to thelanguage. It''s not at all likely to happen IMHO. (You probably want to stayaway from Perl as well).--Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk><http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool dt ****** @@ hotmail .com 写道: php 6会做强打字和/或命名空间吗? 我很惊讶今天发现有些人有实际上认为弱打字在某种程度上更好。 我完全同意。由于强制执行的编译时限制,强类型更有意义。任何不这么认为的人都是懒惰的,坦率地说,并没有考虑长期的可维护性和调试。 它还提到了OOP的基本点,即多态性。 无论如何,如果有人知道php将来会故意保持弱势让我知道所以我可以跳船,谢谢, Will php 6 do strong typing and/or namespaces? I was shocked to find out today that there are some people whoactually argue that weak typing is somehow better.I completely agree. Strong typing makes far more sense due to thecompile-time constraints it enforces. Anyone who thinks otherwise islazy, quite frankly, and isn''t thinking in terms of long-termmaintainability and debugging.It also buggers up the fundamental point of OOP, i.e. polymorphism. Anyway if anyone knows that php is going to intentionally stay weakin the future let me know so I can jump ship, thanks, 一般来说,脚本语言不会被编译。因此,大多数人都不会使用强打字,因为没有编译器可以捕获这个 的东西。例如PHP,Perl,VB,VBscript,Javascript。我不认为 这可能在将来发生变化。正如Andy所说,这将是任何语言的基本范式转换。 另外,我认为像PHP这样的语言是为那些不喜欢的人设计的。知道 很多关于正确的节目。它专为那些只想要b / b 来完成工作的人而设计。无需担心 算法优化,内存分配或释放,散列表 搜索,字符串处理,类型转换,或者实际输入一般。 - OliScripting langauges are not compiled, in general. Therefore most don''tseem to use strong typing, because there''s no compiler to catch thissort of thing. e.g. PHP, Perl, VB, VBscript, Javascript. I don''t thinkthis is likely to change in the future. As Andy says, this would be afundamental paradigm shift in any language.Also, I think languages like PHP are designed for people who don''t knowmuch about "proper" programming. It''s designed for people who just wantto throw something together that does the job. No need to worry aboutalgorithm optimisation, memory allocation or deallocation, hash-tablesearching, string handling, type-casting, or indeed typing in general.--Oli Oli Filth写的(部分):Oli Filth wrote (in part):此外,我认为像PHP这样的语言是专为那些不太了解正确的人而设计的。节目。它专为那些只需要的人想要投入一些能够完成工作的人而设计。无需担心算法优化,内存分配或解除分配,哈希表搜索,字符串处理,类型转换,或者确实键入 Also, I think languages like PHP are designed for people who don''tknow much about "proper" programming. It''s designed for people who justwant to throw something together that does the job. No need to worry about algorithm optimisation, memory allocation or deallocation, hash-table searching, string handling, type-casting, or indeed typing in 一般。 他们说''战斗''的话...... :-) 我使用PHP,因为它是'易于编程并完成工作。 <约会自己> 自1969年以来,我一直参与计算机! Pre Internet,Pre ARPAnet,Pre OOP,几乎是Pre CRTs,Pre PC,Pre MAC,PRE WEB ...... 打卡时代。我已经看过OOP的介绍,我看到Go To 少编程,我看过来自反叛...... <约会自己> 好吧,如果你不喜欢PHP因为它不是OOP而且强烈打字, 不要用它,但不要指望大家都同意你的看法。找一个你喜欢的编程语言,用它来连接WEB服务器 作为CGI。或者,创建自己的语言,可以与网站一起使用 服务器,向每个人证明它比已经出来的更好 那里。当你在它的时候,确保它在捕获数组溢出和边界检查方面做得非常好。 。确保没有人可以使用它来编写恶意代码。 Kengeneral.Them thar''s fight''en words.... :-)I use PHP because it''s easy to program and to get the job done.<dating myself on>I have been involved with computers since 1969! Pre Internet, PreARPAnet, Pre OOP, almost Pre CRTs, Pre PCs, Pre MAC, PRE WEB ... thepunch-card era. I''ve seen the introduction of OOP, I''ve see "Go To"less programming, I''ve seen the "Come From" counter rebellion...<dating myself off>Fine, if you don''t like PHP because it isn''t OOP and strongly typed,don''t use it, but don''t expect everyone to agree with you. Find aprogramming language you like, use it to interface to the WEB serversas a CGI. Or, create your own language that can be used with the webservers, prove to everyone that it is better than what is already outthere. And while you''re at it, make sure that it does an excellent jobat catching array overflows and boundary checking. Make sure no one canuse it to write malicious code.Ken 这篇关于php会不会做强打字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-13 05:38