[swift-users] Question out of curiosity: why "func"

Jim Malak Jim.Malak at beryle-lee.com
Tue Apr 5 04:22:48 CDT 2016

Hi David,

Thanks for nailing that one!
I have to start teaching Swift in a bit and really wanting an answer other that
"Just because it felt good."

_ Jim

Sent from Outlook Mobile<https://aka.ms/sdimjr>

From: David Turnbull <dturnbull at gmail.com<mailto:dturnbull at gmail.com>>
Sent: Tuesday, April 5, 2016 2:03 AM
Subject: Re: [swift-users] Question out of curiosity: why "func"
To: Jim Malak <jim.malak at beryle-lee.com<mailto:jim.malak at beryle-lee.com>>
Cc: <swift-users at swift.org<mailto:swift-users at swift.org>>

On Mon, Apr 4, 2016 at 7:25 AM, Jim Malak via swift-users <swift-users at swift.org<mailto:swift-users at swift.org>> wrote:
 what purpose does requiring the keyword "func" serve when defining or decaling a function in Swift.

func someFunction() {


someFunctionThatTakesAClosure() {



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160405/f6492f19/attachment.html>

More information about the swift-users mailing list