top | item 29139783

(no title)

baktubi | 4 years ago

Yeah some of the issues with error handling are pretty serious. I would say in C++ it could be useful only for simple “nothrow” routines for basic object configuration; this would apply for cases when the configurations should happen after construction.

Aside from that I wouldn’t use it for complex algorithms.

It’s almost like a weird intersection between functional and object oriented paradigms.

But there’s not much benefit from these two approaches:

rect.setHeight(125).setWidth(250);

rect.setHeight(125); rect.setWidth(250);

That being said, for algorithms similar in spirit to the chaining I think the C# Linq language is a good example of something that works well in a “chained” fashion.

discuss

order

No comments yet.