[OT] Swift removing minor features to piss me off
Nick Treleaven via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 28 12:39:23 PDT 2016
On Thursday, 28 April 2016 at 18:49:54 UTC, Steven Schveighoffer
wrote:
> 1. Swift 3 will no longer allow mutable variables as
> parameters. Instead, your parameters will be immutable, or
> reference (inout). To fix this, you can assign your immutable
> variable to a mutable one (immutability is always head
> immutability in swift), or put this weird statement in your
> function:
>
> var i = i
Seems reasonable given that code could mutate a variable
accidentally, e.g. due to a typo.
> 2. Swift 3 will no longer accept ++. You must write += 1.
For a new language, fine, but (assuming increment is a statement
not an expression) removing this and C for probably isn't worth
the annoyance.
More information about the Digitalmars-d
mailing list