3 ms·
> From the Swift docs regarding closures What makes you think Swift only supports functional programming? > I would have used Haskell doc reference And if yo
by ebingdom 5y ago
> 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.