[swift-evolution] Removing explicit use of `let` from Function Parameters
Nicholas Maccharoli
nmaccharoli at gmail.com
Thu Mar 17 03:27:41 CDT 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160317/5af69e9c/attachment.html>
More information about the swift-evolution
mailing list