var remember: (String, () -> Void)?
func remember(_ string: String, handler: () -> Void) {
remember = (string, handler)


Cannot assign value of type ‘(String, () -> Void)’ to type ‘(String, () -> Void)?’

which is nonsense until you notice the missing @​escaping

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!