Jonathan Grynspan
Jonathan Grynspan
Experimental `.serialized(for:)` trait. Example use cases: ```swift import Foundation @Test(.serialized(for: ProcessInfo.self)) func `HAS_FREEZER environment variable`() { _ = setenv("HAS_FREEZER", "1", 1) #expect(FoodTruck.hasFreezer) _ = setenv("HAS_FREEZER", "0", 1) #expect(!FoodTruck.hasFreezer) } @Test(.serialized(for:...
Change our uses of the experimental `_read` to `yielding borrow`. The latter is ABI-compatible with the former per [SE-0474](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0474-yielding-accessors.md#abi-compatibility)
Right now we have minimal documentation for attachments. Need an article and to update the XCTest migration document.
Exit tests write over pipes to send data to/from the child process and should suppress `SIGPIPE` to avoid crashing either process on an edge case.
I've got some use cases for macros where I end up producing an expansion that calls other macros, and those other macros may produce diagnostics. Right now, they end up...
### Location https://github.com/swiftlang/swift-book/blob/d29368733ef0b2852c711a772b383cbfbb9b4740/TSPL.docc/ReferenceManual/Statements.md?plain=1#L1007 https://github.com/swiftlang/swift-book/blob/d29368733ef0b2852c711a772b383cbfbb9b4740/TSPL.docc/ReferenceManual/SummaryOfTheGrammar.md?plain=1#L701 ### Description The lists of valid OS names used with `os()` are incomplete, as the language supports a variety of other OS names such as `WASI`...
This PR adds `CommandLine.executablePath`. We have use cases for this property in Swift Testing, Swift Argument Parser, Foundation, and other places; three use cases a stdlib API makes. Need to...
This PR adds `CustomStringConvertible` conformance to `GUID` on Windows. This type is a currency type and being able to convert it to a string for display or debugging is very...
This PR adjusts the documentation for `Mutex.withLockIfAvailable()` to clarify that it is not subject to spurious failures. The C11 and C++11 specs for their respective `tryLock()` APIs allow for spurious...