-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Reflect "Numeric literal semantics #144" in the design docs #1997
Comments
Hi, I'd like to work on this issue. Can it be assigned to me? |
Sure, I've assigned it to you. Feel free to ask me questions if you need help. It would be reasonable to create a new file for this content, like You should make sure that this document:
|
Also note that /docs/design/lexical_conventions/numeric_literals.md has the official description of how numeric literals are written lexically in the source code (added in #185 ). |
I want to make sure I'm understanding these types correctly. From reading through proposal #144, it looks like every number has a different type. For example, the type of the literal Another question: In the Implicit Conversions section of #144, we bring up the idea of |
It is the value of the |
Makes sense. I had another question about the Implicit Conversions, now that that's clarified. The code for converting an Edit: Never mind, after reading the overview looks like this is correct. |
Yes, the |
Sorry for the delay, I was caught up in finishing another PR and couldn't update you on the progress on this one. I've drafted a design document for numeric literals. Please take a look at it in my fork and let me know what you think! I used the I also added references to this document from the readme in the integer literals and floating-point literals sections. |
I wouldn't start from |
I will go ahead and make a PR so we can properly have suggestions. The reason I had the TODO section is because many of the other design docs I read as examples had the TODO section in the beginning, so I assumed it was boilerplate for newer and less reviewed articles. I've now deleted the TODO section. Also, I was unclear when I used The PR I've created is #2092. |
I've left comments on #2092 . I know I put in a lot of suggestions, but don't worry that is completely expected when first contributing to Carbon. Honestly, we need to do some work to make these detailed design documents more consistent, they have been added over a longish period of time where we have changed our minds about what should be included. |
This PR aims to complete issue #1997.
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please comment or remove the |
I'm expecting this was handled in #2092 and just never closed. |
Proposal #144 was accepted but the design docs in https://github.com/carbon-language/carbon-lang/tree/trunk/docs/design have not been updated to reflect its acceptance.
The text was updated successfully, but these errors were encountered: