/

Swift Forums announcements

25 stories

[Pitch] Declaring trait configurations for test targets for easier testing

Swift Forums announcementsLanguages[Pitch] Declaring trait configurations for test targets for easier testing Hello Swift community! I'd like to pitch an idea that lets you easily test your test targets across different trait configurations in your package. Traits have been a great recent addition to the Swift Package Manager, b

September 4
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Scalable `embedInCode` resources using object files Hi all, I’d like to pitch a more scalable representation for resources embedded in code by SwiftPM. I have a prototype implemented across SwiftPM and Swift Build, and I’d appreciate feedback on the API and the build-syst

September 4
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Distributed RemoteCall Semantics Hello everyone, continuing the series of of Distributed improvements I've been working on recently. This proposal introduces the @remoteCall(...) attribute which can be applied to distributed func/var declarations. It al

September 3
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Add an Embedded File System to SwiftPM Hi all, I would like to discuss adding a generated, read-only EmbeddedFileSystem to SwiftPM. It would let a target access resources declared with SwiftPM's existing Resource.embedInCode(_:) rule as a path-preserving file

September 2
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Conditional compilation for the deployment target Would it make sense to support conditional compilation based on the minimum deployment target? #if deploymentTarget(>=27.0) // Original spelling, updated to deploymentTargetAtLeast September 5, 2026 below. // Implementat

August 31
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Allow conditional compilation in comma-separated syntactic lists Introduction Swift's conditional compilation directives currently work well around declarations and statements, but they cannot be used to conditionally include individual elements inside many comma-separated syntactic l

August 30
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Improve Interaction Between @main and Top Level Code Hi all, This is a small pitch to address some sharp edges that get in the way of using @main in a single file executable, or one with a main.swift . The goal is to allow build systems to get rid of the inconsistent heuri

August 28
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] `Span` over a single value Hello all, this is a new proposal to add initializers to form a single-element Span over any value, and to form a single-element MutableSpan over any mutable value. The evolution pull request is at [pitch] `Span` over a

August 25
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Dependent Integer Expressions in Generic Arguments Hey all, I've been working on several small prototypes of this ever since SE-0452 originally introduced integer generic parameters and mentioned arithmetic generics in the "Future directions" section. Since SE-0531 (lite

August 25
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] `async let` capture list There is currently a deficiency in Swift's async let syntax that does not allow for capturing variables to send to the right-hand side of the equals. This is especially important for Non-Sendable types that must be trans

August 24
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch 4] Custom Main and Global Executors This is a fourth pitch for Custom Main and Global Excecutors . The previous pitch included a delayed enqueuing proposal, which was separated out into SE-0505: Delayed Encoding for Executors . Changes in this version: The

August 21
Swift Forums announcements

Swift Forums announcementsLanguagesPitch: Add bidiClass to Unicode.Scalar.Properties Thanks to Chris Chapman ( @cjchapman ) for driving this! gist Add bidiClass to Unicode.Scalar.Properties Proposal: SE-NNNN Authors: Chris Chapman , Michael Ilseman Review Manager: TBD Status: Awaiting review Implementati

August 20
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Introduce a way to annotate functions that are called at most once Hello Swift community! This pitch introduces a @called(once) attribute to model at-most once execution of a function. Making function execution behavior visible to the compiler has two advantages. First, it makes it poss

August 20
[Pitch] resignRemoteID for remote distributed actor references

Swift Forums announcementsLanguages[Pitch] resignRemoteID for remote distributed actor references Hi everyone, Working with some actor system authors we realized we have a missing hook for cleaning up resources that are created on demand for a remote reference. This was by design initially, however it turned out it’s

August 20
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] SwiftPM build configuration conditionals for target dependencies Hello Swift community, This pitch re-proposes the unimplemented part of SE-0273: Package Manager Conditional Target Dependencies . The original proposal, accepted in 2019, intended to introduce two conditional mechanisms

August 14
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch/Discussion] Introduce `@unsafe(always)` to require explicit unsafe in all language modes Introduction With the recent introduction of opt-in strict memory safety checking ( SE-0458 ), Swift gained the @unsafe attribute. When strict safety mode is enabled, any interaction with unsafe types or functions requir

August 14
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] @noSanitize attribute for functions In embedded environments, it can be useful to disable sanitizer instrumentation on individual functions. For example, ASAN may generate false positives or crash when accessing MMIO regions. In other cases, it may be desi

August 13
[Pitch] Add issue fields to JSON ABI schema

Swift Forums announcementsLanguages[Pitch] Add issue fields to JSON ABI schema The event stream provides a stable interface for external tools to read test events. When encountering an issue while running tests, Swift Testing generates an event which includes a limited amount of issue metadata ( se

August 10
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Default implementation of Hashable for AnyObject Hello friends, I'd like to pitch a very small, but IMHO a very useful change when it comes to conforming AnyObject s to Hashable . Motivation Nowadays it is common to conform classes to Hashable when building SwiftUI app

August 7
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Allow if/switch expressions in arbitrary expression positions SE-0380 restricts if and switch expressions to assignments and returns. I'd like them wherever an ordinary expression is accepted, especially argument values and parenthesized postfix receivers: animate( orientation: swi

July 30
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Modernize imported C arrays Hello Evolution, A year ago, we added the InlineArray type to the standard library, but we didn't adopt it for imported C arrays because there were some technical issues we needed to work through. I now have a working im

July 29
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Product-Builder plugin capability for SwiftPM Hi all, I’d like to pitch a new SwiftPM plugin capability for constructing the final artifacts of a package product. The motivating examples are embedded firmware images, application bundles, installable archives, contai

July 29
Existential casting of borrowed values

Swift Forums announcementsLanguagesExistential casting of borrowed values Hi folks, I'm a mentee participating in the 2026 Swift Mentorship program. I have interest in the ownership system but I'm fairly new to the compiler implementation. While I'm investigating Borrowed value with `as` casti

July 29
Swift Forums announcements

Swift Forums announcementsLanguages[Pitch] Aliased Span and Ref types Hi all, I've written a proposal to introduce a family of Aliased*Span and Aliased*Ref types that provide the memory safety guarantees of the Span and Ref family of types, but with looser requirements around exclusivity,

July 24