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

Create a (better) ported analogue of looptrace.integer_naming #6

Open
vreuter opened this issue Jul 16, 2024 · 0 comments
Open

Create a (better) ported analogue of looptrace.integer_naming #6

vreuter opened this issue Jul 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@vreuter
Copy link
Contributor

vreuter commented Jul 16, 2024

The central building block is a positive, divisible-by-10 integer (equivalently, a natural number of digits for a base-10 number), e.g. 10000 --> 4. This would have type something like type UpperBound <: Singleton & PositiveInt, and then the values passed for representation would have type something like n: Int :| Greater[0] & Less[UpperBound]. This would facilitate, then, typesafe encoding of integers for things like field of view, timepoint, and imaging channel, with the number of characters encoding the number equal to the number of base-10 digits needed to encode the subdomain's max value (e.g. 4 for 9999 < 10000).

As an even further generalisation, the base of the upper bound of the subdomain to define could be parametric, e.g. for a base-2 encoding of a number.

@vreuter vreuter added the enhancement New feature or request label Jul 16, 2024
@vreuter vreuter self-assigned this Jul 16, 2024
@vreuter vreuter changed the title Create an (better) ported analogue of looptrace.integer_naming Create a (better) ported analogue of looptrace.integer_naming Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant