Skip to content

C++ interop type mapping for integer and floating-point literals#6668

Merged
jonmeow merged 2 commits intocarbon-language:trunkfrom
jonmeow:literal-proposal
Feb 6, 2026
Merged

C++ interop type mapping for integer and floating-point literals#6668
jonmeow merged 2 commits intocarbon-language:trunkfrom
jonmeow:literal-proposal

Conversation

@jonmeow
Copy link
Contributor

@jonmeow jonmeow commented Jan 28, 2026

Provides bidirectional mappings for types of integer and floating-point literals
between Carbon and C++. For example, given a literal 123, defines the interop
type.

Co-authored-by: Ivana Ivanovska [email protected]

@jonmeow jonmeow added proposal A proposal proposal draft Proposal in draft, not ready for review labels Jan 28, 2026
@jonmeow
Copy link
Contributor Author

jonmeow commented Jan 28, 2026

FYI @ivanaivanovska (this is largely converted from her doc)

@jonmeow jonmeow force-pushed the literal-proposal branch 2 times, most recently from 20847f0 to dad6733 Compare January 28, 2026 23:37
@jonmeow jonmeow marked this pull request as ready for review January 29, 2026 20:54
@jonmeow jonmeow requested a review from a team as a code owner January 29, 2026 20:54
@jonmeow jonmeow requested review from KateGregory and removed request for a team January 29, 2026 20:54
@github-actions github-actions bot added proposal rfc Proposal with request-for-comment sent out and removed proposal draft Proposal in draft, not ready for review labels Jan 29, 2026
@jonmeow
Copy link
Contributor Author

jonmeow commented Jan 29, 2026

Checked with Ivana and fixed a conversion mistake I'd missed, I think this is ready now.

@chandlerc chandlerc self-requested a review February 3, 2026 21:44
Copy link
Contributor

@chandlerc chandlerc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and approving for leads.

@jonmeow jonmeow added this pull request to the merge queue Feb 6, 2026
Merged via the queue into carbon-language:trunk with commit 68182ba Feb 6, 2026
10 checks passed
@jonmeow jonmeow deleted the literal-proposal branch February 6, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proposal rfc Proposal with request-for-comment sent out proposal A proposal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants