my ideas for array operations

dennis luehring dl.soluz at gmx.net
Fri Oct 5 23:19:06 PDT 2007


> Agreed. Votes--. Pointless.

but why do we have arrays and slices and ~ as operations in language?
why do D overcomes the C++ stage of using templates for every natural 
stuff, and why should we halt to integrate some other natural feature 
for arrays into D (don't look at my syntax - just the idea behind)

i know:
-my syntax is shit
-the syntax must be clear, easy and 100% natural to use
-array operations are heavily in use
-compilers can't easily optimize huge amount of nested foreaches
...

but we can get:
-better optimisation by the compiler (think of D complex support - for 
walter; even the optimiation of a non use real part is a reason for 
integration)
-(maybe) autoparallelisation
-cleaner implementations
...

> Besides, operators should avoid being O(n).

ok array1 OP array2 is bad

but ~OP and @OP are (my) operator-specialisations; they must be O(n) :-}

ciao dennis



More information about the Digitalmars-d mailing list