8000 [Feature Request][Prover] Allow negative numbers in move spec language · Issue #16820 · aptos-labs/aptos-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature Request][Prover] Allow negative numbers in move spec language #16820
@JakeSilverman

Description

@JakeSilverman

🚀 Feature Request

Allow for unary negation operator in move spec language, thus enabling expressions like: let x : num = -1;

Motivation

Signed integers exist in MSL via the num type. But there is no unary negative operator. Instead, to assign a negative to a num, one must do something like let x : num = 0-1;

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0