MystenLabs / sui

Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
https://sui.io
Apache License 2.0
6.13k stars 11.16k forks source link

Feature Request: Native Support for Signed Integers #17856

Open Sceat opened 5 months ago

Sceat commented 5 months ago

Summary

Requesting the addition of native support for signed integers in Sui to facilitate the use of negative numbers within structures.

Motivation

In game development, the ability to use negative numbers within structures is essential. For instance, when creating items, it's often necessary to balance attributes by both increasing and decreasing stats. Native support for signed integers would enable developers to implement these features more effectively and efficiently.

Benefits

image
Sceat commented 4 months ago

Additionally, the new Randomness generator would also include signed versions

To allow random stats on crafted items

image