Steve Yegge's rant on The Next Big Language
Julio César Carrascal Urquijo
jcesar at phreaker.net
Wed Feb 14 19:49:52 PST 2007
BCS wrote:
> To pick at a few:
> Does any language do interators for user type as language features? You
> have to write them your self in every language I know of. In D, all the
> types you can get without a lib can be iterated over without a lib.
In C# you have a yield keyword that creates an Enumerable class for you:
class List {
IEnumerator getEnumerator() {
for (int i = 0; i < 100; ++i)
yield return InnerList[i];
}
}
> And I'll admit that the mult return is a bit of a stretch.
Actually, tuples are one of my favorite language features on both Python
and Erlang.
> But *I* don't care if things come from a lib or from a feature, just how
> well they get the job done. And I would never use a language that
> doesn't need libs. It would be WAY to big.
Agree
> But that's all just my opinion. Really my point is that for the most
> part D, in one form or another, has most of the things mentioned .
Agree, but I think that Steve Yegge was actually referring to a future
version of ECMAScript.
More information about the Digitalmars-d-announce
mailing list