in reply to Re: What does _ mean?
in thread What does _ mean?

the whole book was about writing clear code.

How is "_" unclear? It has one very specific use.

Replies are listed 'Best First'.
Re^3: What does _ mean?
by pileofrogs (Priest) on Feb 03, 2009 at 23:30 UTC

    How about obscure?

      Is -d obscure?

      • It's documented in the same place as -d.
      • It's only used by -d and siblings.
      • And it should be used just about everywhere -d is needed.

        How many places do you see '-d'? How many places do you see '_'? '-d' stands for directory. '_' stands for ??? -d is the same as the unix file test, '_' is the same as ???.

        It might be easy for you to remember things like this, bit it isn't for me. I guarantee you, in a week if you showed me -d(_) I'll have to look it up. And who wants to do that?

        Where is this code running? Is the performance that important? Is -d $filename so much slower?

        --Pileofrogs