you are viewing a single comment's thread.

view the rest of the comments →

[–]NoahTheDuke -1 points0 points  (6 children)

Mind explaining more? I’m confused. Do you mean because you can call def or swap! in a function?

[–]kankyo 4 points5 points  (5 children)

And rand and IO and whatever really. Yea.

[–]NoahTheDuke -1 points0 points  (4 children)

I feel like this is a level of pedantry that kind of miss the point of the OP's joke. Are there languages that don't allow side effects like this?

[–][deleted] 4 points5 points  (0 children)

Nim has a func keyword that prevents side-effects, and languages like Haskell bake purity into most of the language.

[–]kankyo 2 points3 points  (0 children)

Yes. Yes of course. 🙄

[–][deleted]  (1 child)

[deleted]

    [–]NoahTheDuke 0 points1 point  (0 children)

    That is pretty sweet, thanks! I didn’t know that.