Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> That being said object.setter() has no equivalence to FP and is unique exclusively to OOP.

What about Lens.Setter? (http://hackage.haskell.org/package/lens-4.19.2/docs/Control-... )



That's not mutating anything. It's not a true setter.


But maybe it’s a true scotsman..?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: