Login   Register  
PHP Classes
elePHPant
Icontem

Strict variable typing

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Classes blog  >  The Secret PHP Optimi...  >  All threads  >  Strict variable typing  >  (Un) Subscribe thread alerts  
Subject:Strict variable typing
Summary:Very excited about this change
Messages:3
Author:Avi Aialon
Date:2012-06-17 13:02:06
Update:2012-06-18 02:13:34
 

  1. Strict variable typing   Reply   Report abuse  
Picture of Avi Aialon
Avi Aialon
2012-06-17 22:58:10
Comming from a java programming background, this change seems natural and very long overdue for php.

  2. Re: Strict variable typing   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-06-18 00:08:56 - In reply to message 1 from Avi Aialon
Right, but keep in mind that the language itself did not change. Only the runtime engine works more efficiently if there are no dynamically defined class variables, but you can still define class variables dynamically.

  3. Re: Strict variable typing   Reply   Report abuse  
Picture of Avi Aialon
Avi Aialon
2012-06-18 02:13:34 - In reply to message 2 from Manuel Lemos
I agree. Even though its only the runtime engine its a step
In the right direction. And i have a feeling that the success this will bring to the language's performance will open doors for the core development team to explore this further. Also, its still great that you can define dynamic class variables as this maintains php's versatility as a loosely typed language. Im just excited because like i said, having experience with both java and php, if PHP tightened up thigs such as mutuple inheritence, and variable typing..sky's the limiy for PHP!