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


Groups > comp.lang.php > #12949

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

Message-ID <2002239.bAKhZUCtaH@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2014-02-25 04:25 +0100
Subject Re: Why is polymorphism in PHP not like other languages? Is there a bug in PHP?
Newsgroups comp.lang.php
References <a66de55e-7897-4f65-8382-c1591f301906@googlegroups.com> <a405cc62-caae-42b9-a123-af0200787eb6@googlegroups.com> <6oSdneGcz7HMnpHOnZ2dnUVZ_sydnZ2d@giganews.com>

Show all headers | View raw


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

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