Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIP-65: Generic Number Literals #85

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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>.