​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
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to