Re: Property Accessors v1.2 : Typehints / Accessor Syntax

From: Date: Wed, 17 Oct 2012 12:26:43 +0000
Subject: Re: Property Accessors v1.2 : Typehints / Accessor Syntax
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-63505@lists.php.net to get a copy of this message
2012/10/17 Stas Malyshev <smalyshev@sugarcrm.com> > No, you don't get an error. You'd get an error in compiled language. In > dynamic language, your client gets an error when his site is launched > and instead of happy launch his users get white screens. To avoid that, > you'd need to add checks - or just ship it as is and hope your unit > tests were as good as you hoped they are (which they never are). I don't understand why this situation would be better without type hinting. I guess you think it's worst to code with the feeling of having a safety net (that's the feeling given by type hinting to most people) ? (no joke here, I just want to understand)

« previous php.internals (#63505) next »