Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: c-like struct?

by xiaoyafeng (Chaplain)
on Jun 24, 2011 at 14:01 UTC ( #911253=note: print w/ replies, xml ) Need Help??


in reply to Re^3: c-like struct?
in thread c-like struct?

the most difference is hash is not sorted, array is.





I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction


Comment on Re^4: c-like struct?
Re^5: c-like struct?
by MidLifeXis (Prior) on Jun 24, 2011 at 14:14 UTC

    What is the use case where having the data sorted is important? If you are serializing your data, you have a serialization function (could even be pack). How it is stored in memory seems to me to be a detail that is a "don't care" in most circumstances, and is possibly a premature optimization.

    --MidLifeXis

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-12-25 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls