Pazns

Results 13 comments of Pazns

Shouldn't we encase the state transaction in a one-purpose dedicated class and use it as RAII, instead of a generic lambda holder ? Lambdas always feel a bit spaghettic to...

Is returning multiple value without the context and meaning of a clear and known _struct_ really a good idea ?

@TBBle : What are, in the end, the real benefits against C-like approach, like returning error code and returned values through parameter side-effects ? If you often return this coherent...

> Therefore expected makes far more sense as a way to express the concept that a function either generates the value or returns an error code. But if you want...

@nadiasvertex : > However, it is also not terribly unusual to want to return a couple of items. Think about progressive string tokenizing where you want to return the token...

Yeah, @galik is true about the thread being for **guidelines** for current code, and the question of the benefits of a _struct_ against a _tuple_ , and vice versa. I'm...

@hsutter : > On the other hand, an advantage of (b) is: > [...] Is this really an advantage ? An unnamed parameter in a function declaration seems a bit...

@nadiasvertex : > - Reduced verbosity (in the prototype and in the not having to declare a struct) Verbosity is also Clarity. Especially in collaborative programming, it is always good...

@nadiasvertex : With a program, as well as a law, you should be able to read the maximum of informations, in a minimum of time, but also with the least...

@harsain Putting this kind of logic inside your template seems like a good idea to get unmanageable code.