Georg Wrede wrote:
Bill Baxter wrote:
On Thu, May 14, 2009 at 5:05 PM, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> wrote:
A chunky fragment of TDPL will hit Rough Cuts soon enough. I'm pondering
whether I should be adding exercises to the book. Some books have
them, some
don't.
Pros: As I'm writing, I've come up with some pretty darn cool exercise
ideas.
Cons: The book gets larger, takes longer to write, and I never solved
the
exercises in the books I've read, but then I'm just weird.
What do you think?
I learned Scheme on my own using SICP and I found the exercises there
to be quite valuable in verifying that I actually understood* what was
going on.
[*] or didn't understand, as was frequently the case. :-)
Yup. Same here. :-(
Incidentally, here, or in D.learn, somebody was asking for symbolic
derivation with D templates. I think one of the excercises in SICP was
to write a lisp snippet that did just that.
Awesome stuff, through and through.
Speaking of which, compile-time derivation using strings and mixins
would be an awesome addition to std.numeric.
alias unaryFunction!("exp(x) * sin(x)", "x") fun;
alias derive!(fun, "x") dfun;
Andrei