> On Dec 14, 2015, at 9:51 PM, Simon Pilkington <[email protected]>
> wrote:
>
> It seems to make more sense to treat comments as this if they are not present.
>
> As a related question, should the presence/absence of whitespace be important
> at all? It seems fragile if it is.
The current design depends on whitespace to decide whether an operator is
infix, postfix, or prefix. It can be surprising to some folks when they first
encounter it, but IMO it encourages more maintainable code to be written.
The one thing that I’d love to see fixed is to enhance the error produced for
things like:
let x = y*-z
to produce a fixit, which rewrites it as:
let x = y * -z
-Chris
_______________________________________________
swift-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-dev