Andrei writes "The Case for D"

Leandro Lucarella llucax at gmail.com
Tue Jun 16 08:23:41 PDT 2009


Walter Bright, el 16 de junio a las 01:12 me escribiste:
> http://www.reddit.com/r/programming/comments/8stcr/the_case_for_d/

Nice article. A few comments:

* If the article talks just about D2, I think it should be consistent. If
  it says that LDC is not finished because it doesn't support, I think it
  should say that as well for Decent, which has no D2 support. I don't
  know the state of the other tools mentioned, but I think that could
  confuse people. Same for Tango, in D2, when Tango will be finally
  ported, it will not compete anymore as an "standard library", they will
  be able to run side-by-side without problems. The problem with D1 is
  they compete for being the *runtime library*, which can be one and only
  one.

* I think alowing alias of complete expressions would be really nice. What
  does this has to do with the article? Because of this example:

	foreach (f; take(50, recurrence!("a[n-1] + a[n-2]")(0, 1)))
  		writeln(f);

  The example is just beautiful, but I think is a little cryptic, not very
  nice for code review (the Perl-style write-once, never read it again =).

  If you could do something like:

	alias recurrence!("a[n-1] + a[n-2]")(0, 1) fibonacci;
	foreach (f; take(50, fibonacci))
  		writeln(f);

  Ok, that's not a oneliner anymore, but I think is far more readable
  (which, maybe, is not what you want for showing the power of the
  language/stdlib using a oneliner but is what you want for long-term
  real-life development =).


-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------



More information about the Digitalmars-d mailing list