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 » ASSERT when using ValueMap
Re: ASSERT when using ValueMap [message #47687 is a reply to message #47684] Tue, 07 March 2017 10:53 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Good you stepped in!

Value is far too complicated to figure out what is inside if you never bothered before.

And this is another example of the U++ "principle" of taking the value of something at an absolute value without minding the consequences.

In U++ I find it that it often holds true "there are some very good arguments for it, so we'll do it". It is almost never "there are some very good arguments for it, but there are also so dire consequences, so...".

Example: "we will put inline functions everywhere on a single line because it saves space and/or is easy to read for simple functions".

Consequence: the entire U++ codebase has little island of where debugging is very hard.

Nobody puts functions on a single line for this very reason.

Long story short, Value/ValueMap is not debug-able. Period. Whatever arguments one can bring for the single line functions, I really don't think they hold up: what you gain outweigh what you loose.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: C2280
Next Topic: Use zlib inside another library
Goto Forum:
  


Current Time: Sun May 12 10:32:04 CEST 2024

Total time taken to generate the page: 0.02093 seconds