Ramifications of const

Falk Henrich schreibmalwieder at hammerfort.de
Wed Jun 13 14:12:02 PDT 2007


Georg Wrede wrote:

> The day D gets purely functional, I'm outta here!
So am I.

> A language that handles (and understands) smoothly both functional and
> non-functional code, is in a position to reap the benefits from both
> worlds. This is no more peculiar than the fact that D is an excellent
> language for both OO and non-OO programming, as well as mixed OO/non-OO
> programming.
I totally agree. Functional concepts like HOF etc. are nice while
input/output tends to be messy in functional languages. So why not
incorporate the good stuff and avoid the practically unusable parts?

> We are already using pure functions (like sin(x), abs(x), etc.) in our
> code, and this does not have to become any more complicated than that.
> But for the compiler, optimizer, parallel code generator, and some other
> future things, knowing which functions are Pure, is simply essential.
Absolutely correct!

Falk




More information about the Digitalmars-d mailing list