Elektrine lite

← Feed

@dlx@mastodon.social

Post #3631598

2026-07-06 16:00 UTC

I wish Swift had a way to explicitly shadow certain type names from frameworks. #SwiftUI claims names List, Table (and now Documents as of iOS 27 beta 2) for types that we never use so we end up prefixing every with Linear all the time.

Replies (1)

  • @joe@f.duriansoftware.com 2026-07-06 16:05

    @dlx@mastodon.social declarations in your own module are supposed to win over ones imported from elsewhere. would a top-level `typealias List = Linear.List` in your file let you avoid qualifying the name everywhere else?

    Open ##3631597