help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [External] : Re: Closures - do you understand them well?


From: Emanuel Berg
Subject: Re: [External] : Re: Closures - do you understand them well?
Date: Sat, 10 Dec 2022 03:34:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Stefan Monnier via Users list for the GNU Emacs text editor wrote:

> `iterate` explicitly defines those vars to use a single
> binding over the whole iteration (I suspect the same holds
> for `loop` as well, actually). IOW it's very fundamentally
> "imperative", where iteration variables are defined to be
> "uninitialized" at the beginning at are updated by
> side-effect during the course of the iteration. [ I tend to
> cringe at the idea of uninitialized variables. ]

Iteration meaning a for loop is imperative, a traversal of
a data structure is pretty functional IMO ... set, aggregate,
map, higher-order ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]