News for hackers. Stuff that matters.
Re:We will try to stop fixing bugs in PHP by steve8918 on Friday June 22, 2012 @12:11AM (#4145350)
I don't agree with your analogy. The question is more similar to "Can you please tell me the number format of <silence>".

How can the answer to an unfinished question be "0"? 0 is an actual valid answer, when people are asking for number_format(0, 0).

In this case, NULL is definitely more appropriate, because the input is invalid.

Re:We will try to stop fixing bugs in PHP by masklinn on Friday June 22, 2012 @02:34AM (#4145734)
> he question is more similar to "Can you please tell me the number format of <silence>".

Well in PHP, the number for <silence> is 0, so it would stand to reason that the formatted number for <silence> is 0 as well.

Re:We will try to stop fixing bugs in PHP by ivix on Friday June 22, 2012 @05:41AM (#4146100)
Of course, in a more sane language, it would throw an exception, rather than silently returning a wrong value.
Re:We will try to stop fixing bugs in PHP by phene on Friday June 22, 2012 @12:23AM (#4145390)
What's the numeric representation of the volume of <silence>? 0 dB
Re:We will try to stop fixing bugs in PHP by mturmon on Friday June 22, 2012 @01:13AM (#4145519)
Since dB are a log scale, more properly, it would be -Inf dB.
Re:We will try to stop fixing bugs in PHP by exDM69 on Friday June 22, 2012 @09:28AM (#4146669)
0 dB = atmospheric pressure. -Inf dB = vacuum of space.
Re:We will try to stop fixing bugs in PHP by dpark on Friday June 22, 2012 @01:02AM (#4145491)
So you make up a different question to fit the answer you want? Actually that seems about right for PHP.
Re:We will try to stop fixing bugs in PHP by felipellrocha on Friday June 22, 2012 @12:32AM (#4145416)
I think you missed the point here. Steve's analogy asks for a number format, not a volume...
Re:We will try to stop fixing bugs in PHP by MBlume on Friday June 22, 2012 @12:44AM (#4145440)
Downvoted for cleverness.