You are here: Re: Strict types « PHP Programming Language « IT news, forums, messages
Re: Strict types

Posted by David Haynes on 03/30/06 15:01

Oli Filth wrote:
> David Haynes said the following on 30/03/2006 11:43:
> > I'm not sure how many coders would find PHP as attractive if they had to
>> follow stricter object type coding. For example:
>>
>> $a = 'This is a string';
>> $b = ' This is another string ';
>> $c = 3;
>> $d = $a.$b.$c;
>>
>> would become something like:
>> $a = new String('This is a string');
>> $b = new String(' This is another string ');
>> $c = new Int(3);
>>
>> $d = $a->concat($b->concat($c->toString()));
>
>
> Well, Java has strict typing, and you don't have to do this. Same in
> C++ (for the most part).
>
>
>
Yes, they do, but they are designed into the language from the
beginning. I was operating from the assumption of using what was
available today in PHP5.

-david-

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация