[plt-scheme] eqv? equal?

From: Jens Axel Soegaard (jensaxel at soegaard.net)
Date: Sun Mar 1 14:18:59 EST 2009

emre berat nebiog(lu skrev:
> Sorry for this newbie question.But i wonder so much about eqv? and 
> equal?.In the some discussin that passes on ffreenode #scheme.I see some 
> sentence which is "eqv? is faster than equal? in comparison.So i thought 
> eqv? and equal? returns boolean thing #t or #f right ? So why?
> In that point,i have three question about that.
> what is the thing that makes eqv? faster than equal?.
> which one is more powerful on programming  ?
> What is the reason that equal? still be used ? If eqv? is faster than 
> equal?.



Try to predict the result of:

  (eqv? (list 1 2) (list 1 2))


  (equal? (list 1 2) (list 1 2))

What happens and why?

Jens Axel Søgaard

Posted on the users mailing list.