make it so that (=? "hi" "hi") works
Sandra Snan
(25 May 2021 15:38 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(25 May 2021 15:55 UTC)
|
Re: make it so that (=? "hi" "hi") works
Shiro Kawai
(26 May 2021 00:57 UTC)
|
Re: make it so that (=? "hi" "hi") works
John Cowan
(26 May 2021 03:58 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 06:08 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 06:31 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 06:35 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 06:12 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 06:31 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 06:41 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 06:49 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 06:59 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 07:10 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 06:50 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 07:09 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 07:35 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 07:48 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 07:56 UTC)
|
Re: make it so that (=? "hi" "hi") works Sandra Snan (26 May 2021 08:13 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 08:34 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 08:55 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 09:15 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 10:27 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 10:53 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 12:15 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 13:55 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 14:32 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 15:20 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 17:02 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 17:37 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 17:48 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 18:12 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 18:20 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 18:40 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 19:06 UTC)
|
Re: make it so that (=? "hi" "hi") works
Marc Nieper-Wißkirchen
(26 May 2021 19:25 UTC)
|
Re: make it so that (=? "hi" "hi") works
Sandra Snan
(26 May 2021 19:38 UTC)
|
Marc Nieper-Wißkirchen <xxxxxx@nieper-wisskirchen.de> writes: > The version with zero? is at least as performant as the version with > (lambda (x) (= x 0)). This is highly not true for the =? case. The perfomance contest in this case being between (=? x y) and (=? (make-default-comparator) x y) not between (=? x y) and (string=? x y) > Again, which generic code do you have in mind where you want to code > something like (map =? xs ys) and where using a user-supplied comparator > argument is not the better solution? For example (count =? xs ys) to see how many two objects in the same position match. Monster sprites vs player sprites in a video game for example. > While I would rather spell (+ x 1) in full, I agree that versions with > fixed arguments can be useful. For example, make-hash-table with a fixed > eq-comparator argument (e.g. make-eq-hash-table) can be seen as useful. Similarly, (define (apply-default-discount x) (* (default-discount-factor) x)) can be useful in business logic. In other words, fixed arguments can be both dynamic and useful at the same time. > Again, Scheme is not This is a list about what Scheme should be. And my pov in that discussion is that having a comparator argument here makes the entire idea of registering a default comparator pointless. > Python. I do not appreciate being associated with Python. I've used Scheme all my life. People come to Scheme for different reasons and appreciate different aspects of it. I enjoy a homoiconic language (sexps and macros) with the same namespace for car and cdr. > PS: For this use, something like > > =?/default > > would suffice while leaving the SRFI 128 specification of =? intact. I wouldn't mind =?/with-comparator for the version that had the explicit comparator arg. I am going to unsubscribe. To the extent that the semantics of the short names is already eternalized into stone, my participation here is useless. To the extent that they are still up for discussion, I've said what I want them to be.