Fork me on GitHub
#clojure-dev
<
2022-01-15
>
souenzzo04:01:16

Why iteration implements seq using "IIFE" over using a simple let?

hiredman04:01:31

if you look you can see the function is invoked more than once, so not a let

souenzzo04:01:43

😮 The function is named next Then it uses next inside the function Can I ask to use a less-confusing name?

andy.fingerhut14:01:19

In my experience, the core team resists participating in bikeshedding over code that they write.

andy.fingerhut15:01:16

Every time alternate names has come up in discussion, and any response from the core team came at all (usually through Alex Miller), he has been kind enough to explain that they spent N hours considering alternate names for things and went with the one that was published. They probably did not spend nearly so much time on a local-only name like next, but still, they are pretty deliberating kinds of folks.

2
🆗 1
ghadi16:01:12

IIFE is a common pattern for lazy seqs