[swift-evolution] commas optional

Mike Kluev mike.kluev at gmail.com
Sun Oct 15 19:48:53 CDT 2017


On 16 October 2017 at 01:20, Dave Yost <Dave at yost.com> wrote:

> Nuance:
>
> Compiler says:
>     Expression following ‘return’ is treated as an argument of the 'return
> '.
> unless foo() is indented by at least one space. Then there is no
> complaint.
>

to have more fun try this:

<tab-character> return
<tab-character> foo()          // visually no indent, warning

<tab-character> return
<nnnn-spaces> foo()  // no warning. but visually it is the same as above.

where n is the same number of spaces as in your tab-character

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171016/835202ca/attachment.html>


More information about the swift-evolution mailing list