FAQ

On 20/11/13 21:49, Andrea Faulds wrote:
Just my 2 cents, but that definitely looks like a situation that might
crop up in real code unintentionally, and it violates the Principle of
Least Astonishment IMO. Consider a hypothetical function which returns a
modified string. If we've ended up with an empty string being passed
into it, then it suddenly returning an Array is not what you expect, and
might horribly break code that assumes the result won't be a string.
Oh dear Andrea, you should proofread your emails better.
s/won't be/will be

--
Andrea Faulds
http://ajf.me/

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 10 | next ›
Discussion Overview
groupphp-internals @
categoriesphp
postedNov 19, '13 at 11:48p
activeNov 22, '13 at 1:44a
posts10
users4
websitephp.net

People

Translate

site design / logo © 2022 Grokbase