mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
wip
This commit is contained in:
parent
e947cd78b9
commit
98535bfbce
28 changed files with 6508 additions and 337 deletions
7
crates/limits/src/limits.rs
Normal file
7
crates/limits/src/limits.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
/// See specialize_type.rs for where these numbers comes from.
|
||||
pub const MAX_ARGS_PER_FUNCTION: usize = (i16::MAX - 1) as usize;
|
||||
pub const MAX_FIELDS_PER_RECORD: usize = u16::MAX as usize;
|
||||
pub const MAX_ELEMS_PER_TUPLE: usize = u16::MAX as usize;
|
||||
pub const MAX_TAG_UNION_VARIANTS: usize = u16::MAX as usize; // We don't support discriminants bigger than u16.
|
||||
pub const MAX_DEC_INTEGER_COMPONENT: usize = (); // TODO figure out what this is
|
||||
pub const MAX_DEC_DECIMAL_COMPONENT: usize = (); // TODO figure out what this is
|
Loading…
Add table
Add a link
Reference in a new issue