sandstone-mc / sandstone

Sandstone | Next Generation Framework for Minecraft
https://sandstone.dev/
MIT License
173 stars 16 forks source link

`Range` should allow for Minecraft's string ranges #123

Closed GrantGryczan closed 2 years ago

GrantGryczan commented 2 years ago

Implement support for this being included in the Range type:

type Range = `${number}` | `${number}..` | `..${number}` | `${number}..${number}`

It would allow more familiarity for those not fully comfortable with Sandstone's abstractions, and it would also simplify code in some cases.