[swift-evolution] Removing explicit use of `let` from Function Parameters

Adrian Kashivskyy adrian.kashivskyy at me.com
Thu Mar 17 05:03:25 CDT 2016


+1, this should be consistent.

P.S. Finally somebody wrote an email using non-black Comic Sans. 😂

Pozdrawiam – Regards,
Adrian Kashivskyy

> Wiadomość napisana przez Nicholas Maccharoli via swift-evolution <swift-evolution at swift.org> w dniu 17.03.2016, o godz. 09:27:
> 
> ​As a follow-up to proposal SE-0003​: "Removing var from Function Parameters" being accepted,
> I think it might make sense to disallow explicitly declaring function parameters with the `let` keyword since function parameters are immutable by default.
> 
> Basically disallow writing functions like this:
> 
> func foo(let i: Int)  { ... }
> 
> and only allow the function above to be expressed as this:
> 
> func foo(i: Int) { ... }
> 
> ​- Nick​
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160317/e0af10c9/attachment.html>


More information about the swift-evolution mailing list