Re: merits of Lisp vs Python

Liste des GroupesRevenir à cl scheme 
Sujet : Re: merits of Lisp vs Python
De : Nobody447095 (at) *nospam* here-nor-there.org (B. Pym)
Groupes : comp.lang.lisp comp.lang.scheme
Date : 24. Jul 2025, 10:20:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <105sttp$l368$1@dont-email.me>
User-Agent : XanaNews/1.18.1.6
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

Date Sujet#  Auteur
24 Jul 25 o Re: merits of Lisp vs Python1B. Pym

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal