Skip to content

Commit

Permalink
SIP-65: Generic Number Literals
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Jolly committed May 16, 2024
1 parent 750f752 commit b5ca8bd
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions content/generic-number-literals.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
layout: sip
title: SIP-65 - Generic Number Literals
stage: implementation
status: waiting-for-implementation
permalink: /sips/:title.html
---

**By: rjolly**

## History

| Date | Version |
|---------------|--------------------------|
| Jul 23rd 2019 | Initial Draft |

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.

## Proposal

Support generic number literals, as in `val x: BigInt = 111111100000022222222222`.

## Motivation

See <https://github.com/scala/scala3/pull/6919>.

### Specification

See <https://dotty.epfl.ch/docs/reference/experimental/numeric-literals.html>.

## Alternatives

See <https://contributors.scala-lang.org/t/pre-sip-sharp-string-interpolation/5836>.

## Implementation

The implementation of generic number literals can be found at <https://github.com/scala/scala3/pull/6919>.

0 comments on commit b5ca8bd

Please sign in to comment.