Skip to content

Integer literals are undocumented #356

Description

@sarna

New syntax literals were added in janet-lang/janet@872b39c (thanks @sogaiu), but never documented. They seem to be the same as the ones from the int module:

repl:5:> (= 123:u (int/u64 123))
true
repl:6:> (= -123:s (int/s64 -123))
true

So.. are they boxed, or not? My guess would be yes, based on functions used like janet_wrap_u64. Are they then Janet primitive types that should be mentioned on the main datatypes page, or are they just abstract types in a module that happens to be in core? I don't know enough to document them myself, hence this issue and not a PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions