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

Replace elastic_integer, introduce families #864

Open
johnmcfarlane opened this issue Apr 19, 2021 · 0 comments
Open

Replace elastic_integer, introduce families #864

johnmcfarlane opened this issue Apr 19, 2021 · 0 comments
Labels
2.0 request Request for a new feature to be added to CNL

Comments

@johnmcfarlane
Copy link
Owner

What would you like to see in CNL?

As per feedback in Cologne, replace elastic_integer with two types:

  1. A promotion_integer type which auto-widens, taking a family as its only parameter.
  2. A digit_integer type which has Digits and a family as its parameters.

This leaves room for a width_integer, which potentially performs more overflow checks (when composed with overflow_integer) but permits the MNN, thus increasing the range of the type by 1. Its parameters are Width and family. It is advised against for nearly all use cases.

What are you trying to do?

Unblock progress toward standardisation and resolve the confusion surrounding the purpose of elastic_integer in #851.

@johnmcfarlane johnmcfarlane added the request Request for a new feature to be added to CNL label Apr 19, 2021
@johnmcfarlane johnmcfarlane changed the title Replace elastic_integer Replace elastic_integer, introduce families Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 request Request for a new feature to be added to CNL
Projects
None yet
Development

No branches or pull requests

1 participant