Le 03/12/2022 à 15:58, Thomas Morley a écrit :
Ofcourse. Though, it's another  thing a (probably new) user has to
learn, maybe scaring him/her away.


For someone coming from a language like Haskell, Rust,
OCaml or now even Python, pattern matching will feel
already familiar.

Someone new to Scheme programming might be glad to discover a
construct that is easier to remember than functions with cryptic
names like "car", "cdr" and "cadadr".

<shrug> It's a matter of point of view ...


Iiuc, than
(x x)
is a second pattern (and return value), triggered if the first one, a
pair like (a . b), doesn't match.


Yup.

Jean.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to