Re: Typed properties problems

From: Date: Tue, 17 Jan 2017 22:40:02 +0000
Subject: Re: Typed properties problems
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-97840@lists.php.net to get a copy of this message
Hi! > Exactly. Scalars can change datatypes without warning. That's powerful, > but also migrane inducing when not used properly. Not really, scalars can't change datatypes. Variables can hold values of different datatypes, and certain operations can convert values between types. This is the situation with many languages, but in PHP the rules of which operations would accept which types and convert them are more relaxed than in some other languages. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#97840) next »