> On Apr 4, 2016, at 3:40 PM, Jay McCarthy <jay.mccar...@gmail.com> wrote:
> (member eof '(eof)) is #f > > Because '(eof) is the same as (list 'eof) NOT (list eof) > > Jay I'm convinced that implicit quotes are the root of almost all evil in lisp programming languages. That's a big reason why I like the teaching languages better in terms of things making sense. It's also why I normally use `match` instead of `case` even when I *am* dealing with integers or symbols. Alex Knauth > On Mon, Apr 4, 2016 at 3:34 PM, rom cgb <romainbeck...@gmail.com> wrote: >> Hi, >> >> Trying to use eof in a case expression but it doesn't work. >> >> For example >> >> (define (test x) >> (case x >> [(eof) eof] >> [else "else"])) >> >> >> (test eof) will then evaluate to "else" despite (equal? eof eof) evaluating >> to #t. >> >> Why ? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.