Fresh Beginning
  • Home
  • Speaking
  • Reading
  • Github
  • Alma Mater
  • Contact
Subscribe
Tagged

@autoclosure

A collection of 1 post

What is @autoclosure in Swift?
Swift 3.0

What is @autoclosure in Swift?

It's on very rare or never occasion that I have ever used a @autoclosure keyword while passing a closure to method - A closure which takes no parameter and returns a value (No value type) back. In this post I will try to decipher the hazy definition of @autoclosure that

  • Jayesh Kawli
Jayesh Kawli May 15, 2017 • 3 min read
Fresh Beginning © 2022
Powered by Ghost