Why exceptions for error handling is so important
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jan 13 01:58:55 PST 2015
Ola Fosheim Grøstad:
> I've tried to like STL for 17 years, and whenever speed and
> clear programming matters it is basically a good idea to throw
> it out.
Take a look at the ideas of "C++ seasoning"
(http://channel9.msdn.com/Events/GoingNative/2013/Cpp-Seasoning
), where they suggest to do kind of the opposite of what you do,
it means throwing out loops and other things, and replacing them
with standard algorithms.
> A solution like list comprehensions is a lot easier on the
> programmer, if convenience is the goal.
There's still time to add lazy and eager sequence comprehensions
(or even better the computational thinghies of F#) to D, but past
suggestions were not welcomed. D has lot of features, adding more
and more has costs.
> Phobos "ranges" need a next_simd() to be efficient. Right?
Perhaps, but first std.simd needs to be finished.
Bye,
bearophile
More information about the Digitalmars-d
mailing list