Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » New containers - naming
Re: New containers - naming [message #39008 is a reply to message #38988] Wed, 06 February 2013 07:58 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Didier wrote on Mon, 04 February 2013 14:10

Hi Mirek,

great job as usual Cool

For the naming I think that it must be consistent for all new containers so that developers can easily identify just by reading:
instead of :
Quote:

InArray (Array counterpart)
Order (Index counterpart)
OrderVector (VectorMap counterpart)
OrderArray (ArrayMap counterpart)


I would rather put:
OrderArray (Array counterpart)
OrderIndex (Index counterpart)
OrderVector (VectorMap counterpart)
OrderArray (ArrayMap counterpart)


The prefix should always be the same: 'order', 'in' or anything else but I think it should be as explicit as possible so 'order' seems correct to me


Please note that InArray/InVector are fundamentally different, they are not ordered, they are just vectors with fast insert.

Order is "std::set"-like container that is sorted at all times.
 
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is Skylark already working with Mingw?
Next Topic: Details when compiling in 64 bits
Goto Forum:
  


Current Time: Thu May 23 08:08:50 CEST 2024

Total time taken to generate the page: 0.02523 seconds