Fork me on GitHub
#clojure-nl
<
2022-01-20
>
Mno09:01:14

👋

thomas09:01:56

👋

Thierry18:01:51

is there a particular reason bindings inside a let do not execute in order?

borkdude18:01:56

They do execute in order

borkdude18:01:29

but you may have bindings to lazy sequences which only get realized when you consume them.

borkdude18:01:51

so if you do printlns or other side effects in those you may see them in a different order than what you expect

Thierry18:01:00

good to know, trying to test some code and one binding gets executed after the one that comes after it. the test indeed includes some lazy sequences and printlns

Thierry18:01:48

thanks for the tip

Thierry19:01:13

for my test adding a binding with println to print the lazy sequence makes the bindings execute in order again. very good to know. not gonna do this in the project

Thierry19:01:20

learned something 🙂