-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Update the return function regex #5814
Conversation
There was a need for cleaner return functions instead of the old one, because the :: is so confusing for people who learn by looking at codes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally like this addition, idk why we never did it?! hopfully it doesn't break anything we didn't think of.
Can you update examples to add 1 more example using this new addition.
The code for StructFunction.java and EffReturn.java have been updated with two new examples |
After testing this for an hour, everything seems fine. Is there anything else I should test?
|
skript has added new way to return SkriptLang/Skript#5814
Co-authored-by: Patrick Miller <[email protected]>
Description
There was a need for cleaner return functions instead of the old one, because the
::
is so confusing for people who learn by looking at codesfunction getScore(player: player) :: number:
oldfunction getScore(player: player) returns number:
newTarget Minecraft Versions:
any
Requirements:
Related Issues: