Re: Scalar type hinting
| From: | Kris Craig | Date: | Mon, 27 Feb 2012 22:31:42 +0000 |
| Subject: | Re: Scalar type hinting | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-58208@lists.php.net to get a copy of this message | ||
Would "firm" work better?
--Kris
On Mon, Feb 27, 2012 at 2:27 PM, John Crenshaw <johncrenshaw@priacta.com>wrote:
> > -----Original Message-----
> > From: Kris Craig [mailto:kris.craig@gmail.com]
> >
> > Now, to rewind a bit past the latest chunk of "I hate this idea"
> posts....
> >
> > I'd like to suggest a new term: "strong".
> >
> > This term would be similar to "weak", except with a few key differences:
> >
> > ...
> >
> > Some possible examples of how this would look:
> >
> > weak int $i = "aaa"; // Converts to 1 and throws a warning.
> > strong int $ii = "aaa"; // Throws a fatal error.
> > weak int $i = "1"; // Converts to 1.
> > strong int $ii = "1"; // Converts to 1.
> >
> >
> > --Kris
>
> Can we use a different word (not "strong") at least for just discussion
> purposes? I worry that "strong" will produce a feeling of intense fear and
> anxiety in people who have been burned out by strict typing debates. The
> words "strong" and "strict" are basically inflammatory at this point. In
> the interest of facilitating a reasonable discussion, I think we should
> avoid language that is likely to cause discussion to break down.
>
> John Crenshaw
> Priacta, Inc.
>