# SE-0264 (review #2) — Standard Library Preview Package

**URL:** <https://forums.swift.org/t/se-0264-review-2-standard-library-preview-package/31288>\
**Category:** Proposal Reviews\
**Created:** [December 2, 2019, 6:52pm UTC](https://forums.swift.org/t/se-0264-review-2-standard-library-preview-package/31288 "2019-12-02T18:52:45Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![tkremenek](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tkremenek/32/9115_2.png) [@tkremenek](https://forums.swift.org/u/tkremenek)\
**Post date:** [February 4, 2020, 3:55pm UTC](https://forums.swift.org/t/se-0264-review-2-standard-library-preview-package/31288/21 "2020-02-04T15:55:49Z")

</div>

> [@DevAndArtist](#):
>
> Would it make sense to introduce some of the past propsed API's as standalone packages which are now part of ABI stable stdlib binaries only?

It's an interesting idea. However, providing more ways to backward deploy is not the primary intent of these packages and won't always be able to accomplish that. Consider `Result`: if you mix code that is using `Result` from the Standard Library and `Result` from a preview package the two `Result` types will _not_ be the same as they will be vended by different modules.

---

<div class="post-metadata">

**Author:** ![DevAndArtist](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/devandartist/32/287_2.png) [@DevAndArtist](https://forums.swift.org/u/DevAndArtist)\
**Post date:** [February 4, 2020, 4:06pm UTC](https://forums.swift.org/t/se-0264-review-2-standard-library-preview-package/31288/22 "2020-02-04T16:06:10Z")

</div>

That makes sense yes. I wouldn't mind some ability to force manually some stdlib API's to act like if they had `@_alwaysEmitIntoClient` and disable version locking. I'd personally sacrifice some binary size just got the some API's I need and would avoid copy pasting / maintaining them.

---

<div class="post-metadata">

**Author:** ![hartbit](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/hartbit/32/738_2.png) [@hartbit](https://forums.swift.org/u/hartbit)\
**Post date:** [February 5, 2020, 7:51am UTC](https://forums.swift.org/t/se-0264-review-2-standard-library-preview-package/31288/23 "2020-02-05T07:51:58Z")

</div>

@tkremenek As was mentioned in December by @SDGGiesbrecht:

> [@SE-0264 (review #2) — Standard Library Preview Package](https://forums.swift.org/t/se-0264-review-2-standard-library-preview-package/31288/7):
>
> Looking at the prototype, why is [the package named swift-preview](https://github.com/apple/swift-evolution/pull/1090/files#diff-37ca2dd15ca0f6b1b49e78db084ef5b9R17)? Right now we kind of have an inconsistent mess: Package Name Library Name SwiftPM SwiftPM (or SwiftPM-auto) SwiftSyntax SwiftSyntax swift-format SwiftFormat cmark cmark llbuild llbuildSwift (swift-preview) (SwiftPreview) This will become more apparent when SE‐0226 comes to fruition. (And the PRs are rolling in as we speak! tada) From its proposal (emphasis added): To…

The implementation of [SE-0226](https://github.com/apple/swift-evolution/blob/master/proposals/0226-package-manager-target-based-dep-resolution.md) is coming in Swift 5.2 and will make those naming issues much more visible, forcing users to explicitly specify their dependencies in their manifests:

```swift
let package = Package(
    name: "BestPackage",
    dependencies: [
        .package(url: "https://github.com/apple/swift-standard-library-preview", from: "1.0")
    ],
    targets: [
        .target(name: "BestTarget", dependencies: [
            .product(name: "StandardLibraryPreview", package: "swift-standard-library-preview")
        ]
    ]
)

```

Shouldn't we start naming repositories the same name as their packages?

---

<div class="post-metadata">

**Author:** ![tkremenek](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tkremenek/32/9115_2.png) [@tkremenek](https://forums.swift.org/u/tkremenek)\
**Post date:** [February 14, 2020, 9:41pm UTC](https://forums.swift.org/t/se-0264-review-2-standard-library-preview-package/31288/24 "2020-02-14T21:41:38Z")

</div>

> [@hartbit](#):
>
> Shouldn't we start naming repositories the same name as their packages?

@hartbit, just wanted to acknowledge that I've seen this point and have been thinking about.

The change in SE-0226 is a good change, but embracing that model fully is going to be challenging for GitHub organizations that have a large number of repositories that are being contributed by multiple teams. This problem will show up in particular with larger companies that are publishing a variety of open source projects into a single organization.

The Swift repositories have had the `swift-` prefix to "namespace" them from other projects in the Apple organization. Today, GitHub does not support nested organizations, which would be a nice way to chop off such prefixes that are used in repository names for this purpose.

Because the Swift core project repositories are in the Apple organization (and there is no plan otherwise right now) my intuition is we are dealing with tradeoffs. The tradeoff here is to keep all the repositories consistently named or embrace more of the benefits of SE-0226. After thinking about it, the decision is to go with the former.

I think this will be an evolving story over time. I anticipate that the tools will continue to evolve (e.g., a package index remains an interesting direction) which may change the options available here. For now, we are going to go with the approach given.

---

<div class="post-metadata">

**Author:** ![vanvoorden](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/vanvoorden/32/33619_2.png) [@vanvoorden](https://forums.swift.org/u/vanvoorden)\
**Post date:** [June 23, 2025, 11:27pm UTC](https://forums.swift.org/t/se-0264-review-2-standard-library-preview-package/31288/25 "2025-06-23T23:27:32Z")

</div>

It sounds like the [Swift Evolution Process Guide](https://github.com/swiftlang/swift-evolution/blob/main/process.md) still recommends opening a diff on `swift-standard-library-preview` for proposals that would add work on stdlib… but I don't actually see very much activity on that repo. Is `swift-standard-library-preview` still being actively supported? Should proposal reviews that hack on stdlib still open diffs on `swift-standard-library-preview`? Or is opening a stdlib diff directly on `swift` the way most engineers are going these days?

---

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [June 24, 2025, 1:33am UTC](https://forums.swift.org/t/se-0264-review-2-standard-library-preview-package/31288/26 "2025-06-24T01:33:33Z")

</div>

You are correct that the repo is de facto obsolete.

[Previous page](https://forums.swift.org/t/se-0264-review-2-standard-library-preview-package/31288.md?page=1)
