Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>.