Skip to content

Commit 2ad5a00

Browse files
committed
SIP-65: Generic Number Literals
1 parent 7fbd15a commit 2ad5a00

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: sip
3+
title: Generic Number Literals
4+
stage: implementation
5+
status: waiting-for-implementation
6+
number: 65
7+
permalink: /sips/:title.html
8+
---
9+
10+
**By: rjolly**
11+
12+
## History
13+
14+
| Date | Version |
15+
|---------------|--------------------------|
16+
| Jul 23rd 2019 | Initial Draft |
17+
18+
Your feedback is welcome! If you're interested in discussing this proposal, head over to [this](https://contributors.scala-lang.org/t/status-of-experimental-numeric-literals/6658) Scala Contributors thread and let me know what you think.
19+
20+
## Proposal
21+
22+
Support generic number literals, as in `val x: BigInt = 111111100000022222222222`.
23+
24+
## Motivation
25+
26+
See <https://github.com/scala/scala3/pull/6919>.
27+
28+
### Specification
29+
30+
See <https://dotty.epfl.ch/docs/reference/experimental/numeric-literals.html>.
31+
32+
## Alternatives
33+
34+
See <https://contributors.scala-lang.org/t/pre-sip-sharp-string-interpolation/5836>.
35+
36+
## Implementation
37+
38+
The implementation of generic number literals can be found at <https://github.com/scala/scala3/pull/6919>.

0 commit comments

Comments
 (0)