Re: Scalar type hinting

From: Date: Mon, 27 Feb 2012 22:41:27 +0000
Subject: Re: Scalar type hinting
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-58211@lists.php.net to get a copy of this message
That's going to get turned into the "real" name if used. I suggest instead: Gribblefritz. Gribble typing: the type handling that PHP does today in 5.3/5.4 for scalar values. Fritz typing: Some as-yet-undefined type handling that is pickier than Gribble typing, but how much pickier is unclear. That, at least, no one has any pre-conceived definition of. --Larry Garfield On 2/27/12 4:31 PM, Kris Craig wrote:
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.


« previous php.internals (#58211) next »