Why don't other programming languages have ranges?

levenshtein distance at fun.org
Sun Jul 25 04:11:21 PDT 2010


Walter Bright Wrote:

> Justin Johansson wrote:
> > It sounds like the D PL has invented the range idiom unlike any other PL.
> 
> Pointer programming is deeply embedded into the C++ culture, and iterators segue 
> nicely into that culture. For D, however, programming revolves around arrays, 
> and ranges fit naturally into that.
> 
> It'll take years, but I'll be very surprised if ranges don't filter into many 
> major languages, as well as other ideas that D has proven to be solid.

At least the C++ fellows already stole your 'auto' type inference and the new template functionality. C# stole your delegate system. They even use the same terms. The world dominance already started.


More information about the Digitalmars-d mailing list