Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-12260] It's impossible to change the default type for array and dictionary literals #54688

Open
swift-ci opened this issue Feb 24, 2020 · 2 comments
Labels
compiler The Swift compiler itself good first issue Good for newcomers improvement standard library Area: Standard library umbrella swift evolution proposal needed Flag → feature: A feature that warrants a Swift evolution proposal

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-12260
Radar rdar://problem/59740182
Original Reporter cukier (JIRA User)
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Compiler, Standard Library
Labels Improvement, StarterProposal
Assignee None
Priority Medium

md5: 37f9095891a29ee41ce249e50f84041f

Issue Description:

It's possible to change the default types for all literals except array and dictionary

https://developer.apple.com/documentation/swift/swift_standard_library/initialization_with_literals/default_literal_types

@typesanitizer
Copy link

@swift-ci create

I suspect the reason for this is that these came before the language had support for generic typealiases. For example, if one looks at the history of `public/core/Policy.swift`, one sees that the line

public typealias BooleanLiteralType = Bool

was added in 2014.

@CodaFi
Copy link
Contributor

CodaFi commented Feb 25, 2020

This would make for a good evolution proposal. Retagging.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added good first issue Good for newcomers swift evolution proposal needed Flag → feature: A feature that warrants a Swift evolution proposal and removed StarterProposal labels Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler itself good first issue Good for newcomers improvement standard library Area: Standard library umbrella swift evolution proposal needed Flag → feature: A feature that warrants a Swift evolution proposal
Projects
None yet
Development

No branches or pull requests

4 participants