Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: string pre decrement #69

Closed
Matrix89 opened this issue May 6, 2021 · 1 comment
Closed

Feature request: string pre decrement #69

Matrix89 opened this issue May 6, 2021 · 1 comment

Comments

@Matrix89
Copy link

Matrix89 commented May 6, 2021

Doing a string pre decrementation should remove the first character not the last one.
Expected behaviour:

input = "Hello World!"
--input -- input should be equal to "ello World!"
@Azurethi
Copy link
Collaborator

Azurethi commented May 6, 2021

May seem logical, but per the description on the starbase wiki, both pre & post decrement do the same thing to strings.

A--

Removes the last character of the string. Results in runtime error when trying to remove "". Evaluates to the original value.

--A

Removes the last character of the string. Results in runtime error when trying to remove "". Evaluates to the modified value.

p.s: me replying since this is a yazur related thing :)

@Azurethi Azurethi closed this as completed May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants