[plt-scheme] eqv? equal?
eqv returns false.
equal returns true.
i learn new things so eqv? and equal? is not the same thing.But i cannot
thing anything about that I read the link..
On Sun, Mar 1, 2009 at 9:18 PM, Jens Axel Soegaard <jensaxel at soegaard.net>wrote:
> 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?.
>>
>
> Read:
>
>
> http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_sec_6.1
>
> Try to predict the result of:
>
> (eqv? (list 1 2) (list 1 2))
>
> and
>
> (equal? (list 1 2) (list 1 2))
>
>
> What happens and why?
>
> --
> Jens Axel Søgaard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090301/24a3b04f/attachment.html>