Re:Swift Snares and How to Avoid Them
by cballard on Wednesday January 27, 2016 @08:47PM
(#10985439)
IMO, the anti-pattern in use here is out parameters, Swift has tuples for a reason!
Re:Swift Snares and How to Avoid Them
by senderpath on Thursday January 28, 2016 @12:43PM
(#10989748)
Sorry; editing mishap, yes. Here's the missing example:
class Holder { var x = 0 } var n = 1 var h: Holder? = ... h?.x = n++ n // 1 or 2?
Re:Swift Snares and How to Avoid Them
by senderpath on Thursday January 28, 2016 @12:58PM
(#10989881)
PS: We have corrected the editing glitch and restored the missing section. Thanks for catching it.
In any case, you can probably guess what it was about. Something along the lines of:
will z be changed?