[racket-dev] Racket docs and data-driven design
Why is else evil? I can see how it might be pragmatic to avoid it in a
language without contracts, but I'm having trouble seeing evil.
Robby
On Fri, Sep 16, 2011 at 10:52 AM, Shriram Krishnamurthi <sk at cs.brown.edu> wrote:
> I introduced templates today. Almost as if on cue, one student asked
> whether he could use else instead of (cons? l). I told them I was
> going to make a MORAL judgment about why it was EVIL, and spent ten
> minutes talking about all that.
>
> As class ended, one of my students came up and said,
>
> "So why doesn't the Racket language Web site agree with you?"
>
> http://docs.racket-lang.org/guide/Lists__Iteration__and_Recursion.html
>
> (Look for "[else".)
>
> Shriram
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/dev
>