Groups | Search | Server Info | Login | Register


Groups > comp.lang.scheme > #6524

Re: merits of Lisp vs Python

From "B. Pym" <Nobody447095@here-nor-there.org>
Newsgroups comp.lang.lisp, comp.lang.scheme
Subject Re: merits of Lisp vs Python
Date 2025-07-24 09:20 +0000
Organization A noiseless patient Spider
Message-ID <105sttp$l368$1@dont-email.me> (permalink)

Cross-posted to 2 groups.

Show all headers | View raw


> Contrast the much more common
> 
>   a[i] = b[n]
> 
> with
> 
>   (setf (aref a i) (aref b n))

Would this be concise enough?

(a i b n)


Gauche Scheme

(define-method object-apply
  ((v0 <vector>) (i0 <integer>) (v1 <vector>) (i1 <integer>))
  (vector-set! v0 i0 (ref v1 i1)))

(define a #(2 4 6 8))
(define b #(30 50 70 90))

gosh> a
#(2 4 6 8)

(a 2 b 3)

gosh> a
#(2 4 90 8)


-- 
[T]he problem is that lispniks are as cultish as any other devout group and
basically fall down frothing at the mouth if they see [heterodoxy].
  --- Kenny Tilton
The good news is, it's not Lisp that sucks, but Common Lisp. --- Paul Graham

Back to comp.lang.scheme | Previous | Next | Find similar


Thread

Re: merits of Lisp vs Python "B. Pym" <Nobody447095@here-nor-there.org> - 2025-07-24 09:20 +0000

csiph-web