Personally I would prefer all the modified to go on the right, so that the declaration is sorted from most important to least left to right. EG:
Instead of: @disguardableResult public async mutating func x() throws -> Bool I would prefer something like: func x() -> Bool @ throws disguardableResult public async mutating Where @ introduces a list of space separated modifiers. That’s why I also prefer: let x: Int // Swift over: const int x // C And moving the where clause to the end of the declaration. Unfortunately I am not sure this is practical at this stage. -- Howard. > On 10 Oct 2017, at 5:21 am, Mike Kluev via swift-evolution > <swift-evolution@swift.org> wrote: > >> On Sat, 7 Oct 2017 07:48:08 +0100, <swift-evolution-requ...@swift.org> wrote: >> So it would be: >> >> func() -> @discardable Bool { } >> >> Rather than: >> >> @discardableResult func() -> Bool { } > > > i'd say: > > func foo() -> discardable Bool { > ... > } > > if we were starting from scratch > >> It could be even better if someone could perhaps find a shorter word that >> is a synonym for the word "discardable", that would be as explicit in >> intent as the word "discardable" is in such context, yet be written with >> fewer characters. > > Mike > > _______________________________________________ > swift-evolution mailing list > swift-evolution@swift.org > https://lists.swift.org/mailman/listinfo/swift-evolution
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution