Skip to content

Alias int-to-<ascii-or-utf8> to uint-to-<ascii-or-utf8> #61

Description

@hugoclrd

The native functions int-to-ascii and int-to-utf8 take one argument that can be an int or uint. Which is rare in Clarity, that is usually picky with types.
Because of that, this function can look off at first glance:

(define-private (func (a uint))
  (int-to-ascii a)
)

A clarity developer might try to type uint-to.. but the auto-completion wouldn't be triggered, hence the suggestion add 2 aliases:

  • uint-to-utf8
  • uint-to-ascii

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

    clarity-need-refinementThe issue is not specific enough and need to be reworked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions