Follow

The biggest sin in Swift is how it allows instance methods to be passed as parameters to functions that take a block type. It’s a turnkey solution to getting a memory leak in your code!

It’s also IMPOSSIBLE to detect in code review unless you know the signature of all methods involved.

@brunoph Yup. It should be forbidden and so should nested func's (since they let you bypass the "spell out self if you're going to capture it" rule)
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!