FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Why is polymorphism in PHP not like other languages? Is there a bug in PHP?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Why is polymorphism in PHP not like other languages? Is there a bug in PHP? [message #185051 is a reply to message #185045] Tue, 25 February 2014 03:25 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Robert Heller wrote:

> Note a compiled language (like C++ or Java) need up-front knowledge about
> things, while *intrepreted* languages defer resolving things until
> runtime. Partitularly with languages where classes can be defined 'on the
> fly'.

Note: PHP source code is compiled to bytecode, as is code in many other
programming languages.

Get rid of the common misconception of “compiled language” vs. “interpreted
language”, and stop spreading this nonsense.

The relevant difference here, if any, is between static and dynamic
type-checking. (Get rid of “loosely typed” vs. “strictly typed” as well.)


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Completely stumped
Next Topic: Correlating curl resources to some other object.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 23:50:18 GMT 2024

Total time taken to generate the page: 0.04011 seconds