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

Add support of if / else / end #71

Closed
Flipez opened this issue Feb 3, 2022 · 3 comments
Closed

Add support of if / else / end #71

Flipez opened this issue Feb 3, 2022 · 3 comments
Labels
enhancement New feature or request no-changelog

Comments

@Flipez
Copy link
Owner

Flipez commented Feb 3, 2022

syntax should look like:

if(false)
  puts("if")
elif(5 < 4)
  puts("else if")
else
  puts("else")
end
@Flipez Flipez added the enhancement New feature or request label Feb 3, 2022
@Flipez Flipez closed this as completed Jul 2, 2022
@Flipez Flipez added invalid no-changelog and removed enhancement New feature or request labels Jul 2, 2022
@Flipez Flipez reopened this Sep 24, 2022
@Flipez Flipez added enhancement New feature or request and removed invalid no-changelog labels Sep 24, 2022
@MarkusFreitag
Copy link
Collaborator

MarkusFreitag commented Oct 30, 2023

Should el replace else in general or just be added as an alias? Because replacing it would be a breaking change.

@Flipez
Copy link
Owner Author

Flipez commented Oct 31, 2023

Should be

if(false)
  puts("if")
elif(5 < 4)
  puts("else if")
else
  puts("else")
end

@Flipez
Copy link
Owner Author

Flipez commented Nov 28, 2023

Implemented by #198

@Flipez Flipez closed this as completed Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no-changelog
Projects
None yet
Development

No branches or pull requests

2 participants