Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Bug or WAD in lvalue substr? (again.)

by moritz (Cardinal)
on May 27, 2008 at 13:37 UTC ( [id://688662]=note: print w/replies, xml ) Need Help??


in reply to Bug or WAD in lvalue substr? (again.)

A bug is every user-visible behaviour that is contrary to the documentation. I'd not call the output of Devel::Peek user-visible (it's a Devel:: module, after all), and the the docs generally don't give performance guarantees.

That said you should still send a bug report to p5p, maybe they can do something about it (update: after reading tye's reply I think a doc patch would be appropriate).

I've taken a look inside the source code for pp_substr, but frankly, I do not understand the macro-machinations that go on in there.

I shared that experience the other day :/

  • Comment on Re: Bug or WAD in lvalue substr? (again.)

Replies are listed 'Best First'.
Re^2: Bug or WAD in lvalue substr? (again.)
by Anonymous Monk on May 27, 2008 at 16:03 UTC

    "A bug is every user-visible behaviour that is contrary to the documentation."

    So, "no docs, no bugs" ?

    I'll remember that for next time I need a good excuse for not having written documentation ;)

      So, "no docs, no bugs" ?
      Yes. And no.

      If you try to define rigorously what a bug is, you don't really have a choice.

      However normally the documentation isn't really rigorous either. The manpage for grep say it searches for matches of regular expressions - but it doesn't say that it terminates after all input is exhausted. Normally you'd still say it's a bug if it hangs afterwards.

      But you can't just say that every program has to terminate, because stuff like servers often has to run until stopped by external intervention.

      So strictly speaken "no docs, no bugs" holds true. But you can still disappoint the user, and in some cases people will call that a "bug" as well.

      I'll remember that for next time I need a good excuse for not having written documentation ;)

      When you write software for money, you usually have some kind of requirement docs, which serve as docs as well. If not, you're lucky.

      (I saw that smiley, yes, but I still wanted to express my thoughts about what a bug is and what not).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://688662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found