Re: Re: "use strict" or similar in PHP?
| From: | Robert Cummings | Date: | Fri, 27 Feb 2009 22:46:18 +0000 |
| Subject: | Re: Re: "use strict" or similar in PHP? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288951@lists.php.net to get a copy of this message | ||
On Fri, 2009-02-27 at 14:32 -0800, Michael A. Peters wrote:
> Robert Cummings wrote:
> ... the line between the
> > definition of interpreted language and compiled language is quite blurry
> > these days.
>
> #include<stdio.h>
> main()
> {
> printf("Hello World");
> }
>
> Compile that - and you can run it on any system that is binary
> compatible, whether or not is has a C compiler.
>
> However, it will not run on systems that are not binary compatible, even
> if they have a C compiler.
>
> <?php
> print ("Hello World");
> ?>
>
> That will only run on systems with a php interpreter, even if you
> "compile" it into byte-code.
>
> However, unlike the c example, it will run on any system with a php
> interpreter.
>
> Nothing fuzzy about it.
This is not the litmus test for compiled versus interpreted languages.
http://en.wikipedia.org/wiki/Compiled_language
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP