News for hackers. Stuff that matters.
Re:The Repeated Deaths of OOP (2015) by ebingdom on Sunday June 06, 2021 @10:29AM (#27413421)
> From the Swift docs regarding closures

What makes you think Swift only supports functional programming?

> I would have used Haskell doc reference

And if you would have, you would have disproved your own point. In Haskell, closures cannot mutate state, because mutable state is not part of the language semantics. It's modeled explicitly via monads.

There are no comments on this comment yet.