News for hackers. Stuff that matters.
Re:Functor and Monad in Swift by josephlord on Friday January 02, 2015 @04:48PM (#8828747)
Good point. I missed that. Trouble with reading blog posts is getting relevant bits of code together on the screen, should have opened a second browser window (or third to include the HN discussion).

Value types are actually copy on write internally in Swift so no copy will be done unless a mutation of the error is attempted.

Re:Functor and Monad in Swift by JSoto on Friday January 02, 2015 @04:57PM (#8828799)
Oh yeah that's a good point! (and a really interesting optimization that can be applied to immutable values)