Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #12993

Re: Why is polymorphism in PHP not like other languages? Is there a bug in PHP?

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: Why is polymorphism in PHP not like other languages? Is there a bug in PHP?
Date 2014-02-25 21:11 -0500
Organization A noiseless patient Spider
Message-ID <lejih2$v6d$3@dont-email.me> (permalink)
References (1 earlier) <a405cc62-caae-42b9-a123-af0200787eb6@googlegroups.com> <6oSdneGcz7HMnpHOnZ2dnUVZ_sydnZ2d@giganews.com> <2002239.bAKhZUCtaH@PointedEars.de> <leh81p$vpa$2@dont-email.me> <wg9Pu.23258$uP3.17217@fx15.iad>

Show all headers | View raw


On 2/25/2014 6:00 PM, Daniel Pitts wrote:
> On 2/24/14 9:00 PM, Jerry Stuckle wrote:
>> On 2/24/2014 10:25 PM, Thomas 'PointedEars' Lahn wrote:
>>> 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
>>>
>>
>> Bytecode is not the same as machine code.  And interpreting on the fly
>> is not the same as compiling once.
>>
>> But we also know you don't understand the difference - which is why you
>> claim they are the same.
>>
>> And we also know you're just being your usual pedantic self.
>
> This has nothing to do with whether a language is compiled or
> interpreted, and everything to do with the type semantics of the language.
>
> The OP example is along the lines of: Duck Typing.
>
> http://en.wikipedia.org/wiki/Type_system#Duck_typing
>
>

You missed the entire discussion.


-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Why is polymorphism in PHP not like other languages? Is there a bug in PHP? "kurtk@pobox.com" <kurtk@pobox.com> - 2014-02-24 11:49 -0800
  Re: Why is polymorphism in PHP not like other languages? Is there a bug in PHP? "kurtk@pobox.com" <kurtk@pobox.com> - 2014-02-24 13:16 -0800
    Re: Why is polymorphism in PHP not like other languages? Is there a  bug in PHP? Robert Heller <heller@deepsoft.com> - 2014-02-24 20:43 -0600
      Re: Why is polymorphism in PHP not like other languages? Is there a  bug in PHP? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-25 04:25 +0100
        Re: Why is polymorphism in PHP not like other languages? Is there a  bug in PHP? Jerry Stuckle <jstucklex@attglobal.net> - 2014-02-25 00:00 -0500
          Re: Why is polymorphism in PHP not like other languages? Is there a  bug in PHP? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-02-25 15:00 -0800
            Re: Why is polymorphism in PHP not like other languages? Is there a  bug in PHP? Jerry Stuckle <jstucklex@attglobal.net> - 2014-02-25 21:11 -0500
              Re: Why is polymorphism in PHP not like other languages? Is there a  bug in PHP? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-02-26 09:53 -0800
                Re: Why is polymorphism in PHP not like other languages? Is there a  bug in PHP? "kurtk@pobox.com" <kurtk@pobox.com> - 2014-02-27 12:08 -0800
                Re: Why is polymorphism in PHP not like other languages? Is there a bug in PHP? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-27 23:06 +0100

csiph-web