Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: What A Wonderful World: Bitmasks!

by chromatic (Archbishop)
on Dec 08, 2002 at 07:35 UTC ( [id://218346]=note: print w/replies, xml ) Need Help??


in reply to What A Wonderful World: Bitmasks!

Some cons:

  • You're polluting namespaces with constants
  • You can only express boolean conditions without calculating them
  • Every data structure has to have a slot for all possible conditions
  • Any code that deals with conditions has to know about all possible conditions
  • You're separating the meaning of a thing from the description of the thing
  • You're requiring *more* syntax, and it's punctuation
  • You're dictating the implementation of future potential data structures

They're a tool, like everything else, and have their uses in certain circumstances.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-03-28 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found