Xiaodi Wu

Results 70 comments of Xiaodi Wu

Toolchain links: * [Ubuntu](https://download.swift.org/tmp/pull-request/74522/899/ubuntu2004/PR-ubuntu2004.tar.gz) * [Windows](https://ci-external.swift.org/job/swift-PR-build-toolchain-windows/5327/artifact/) * [macOS](https://download.swift.org/tmp/pull-request/74522/1327/xcode/swift-PR-74522-1327-osx.tar.gz)

@mateusrodriguesxyz Would you mind throwing in tests to ensure that `[Int,]` in type position, `@inline(never,)`, and the like remain invalid? And have you been able to look into which other...

> @xwu I've updated the tests with built-in attributes. None of them currently support trailing comma but maybe backDeployed and storageRestrictions should because they take a variadic list of value...

I'm kind of surprised to learn it was included in the first place, as it's not really a list. I had thought you'd audited all the built-in attributes and none...

Got it. I'm not certain, so the safer route is not to add trailing comma support.

You can refer to the [Swift Forums](https://forums.swift.org) for information about new language features adopted through the Swift Evolution process. In this case, the acceptance with modifications is documented [here](https://forums.swift.org/t/accepted-with-modifications-se-0439-allow-trailing-comma-in-comma-separated-lists/73216). This...

> Early on, the stdlib project has decided that sorted()/map() and similar algorithms always return an Array, on every type; note that this was a deliberate choice, not an accident....

Would this API be just a different spelling for a [`CountedSet`](https://github.com/apple/swift-collections/issues/20) initializer, or would there be meaningful differences?

Hi Heiko, the argument to `rotate` isn't the number of elements to rotate left or right, but rather it is the current index of the element that should be first...