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-569] Create a Swift Internals Manual #43186

Open
sethfri opened this issue Jan 18, 2016 · 0 comments
Open

[SR-569] Create a Swift Internals Manual #43186

sethfri opened this issue Jan 18, 2016 · 0 comments
Labels
compiler The Swift compiler in itself documentation improvement

Comments

@sethfri
Copy link

sethfri commented Jan 18, 2016

Previous ID SR-569
Radar None
Original Reporter @sethfri
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement, Documentation
Assignee None
Priority Medium

md5: 1d62b4814b55823dfda00bacb8aca661

Issue Description:

Clang has the Internals manual, and swiftc should have something similar. Particularly, I'm very interested in the following case being documented. Once it is, I feel like people would be better able to understand the compiler and add to it.

Let's say I have a type called SuperInt that has some cool integer operations that would be applicable and useful to everyone writing Swift. It's a given that this makes sense to be in the Swift language, and people are going to be using it so often that it makes sense to create a new literal syntax for this type. I'd like users to be able to instantiate a SuperInt with the following:

let superIntExample = %^100^%

Crazy syntax for a crazy example, but I wanted to make sure it's not something that's already in Swift. In this example, my SuperInt would be instantiated with a value of 100.

I'd like to know the parts of the Swift compiler I would need to understand and change to implement this new type with its new syntax.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself documentation improvement
Projects
None yet
Development

No branches or pull requests

1 participant