dotnet / dotnet/csharplang

Champion "Native-Sized Number Types" (VS 16.8, .NET 5)

Open
#435 81 comments 59 reactions 1 assignee Claimed by @jaredpar View on GitHub
Design Review Implemented Needs ECMA Spec Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

Summary: `nint i = 1;` and `nuint i2 = 2;`

Shipped in preview in 16.7p1.

----

- [x] Proposal added (https://github.com/dotnet/csharplang/blob/master/proposals/csharp-9.0/native-integers.md, open issues https://github.com/dotnet/csharplang/issues/3259)
- [x] Discussed in LDM
- [x] Decision in LDM
- [ ] Finalized (done, rejected, inactive)
- [ ] Spec'ed

/cc @KrzysztofCwalina @jaredpar

[jcouv update:] as part of this feature, we should consider what `Interlocked` overloads the BCL/runtime should provide for those new types.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.