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

Change PropertyExpression generics to match SkriptLang #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheLimeGlass
Copy link
Contributor

Change PropertyExpression generics to match SkriptLang.
This drives me crazy when working with the skript-parser. In my opinion, it should match Skript's generic order like reading a book. Left to right. The left element gets the property return of the right element.

This is a big breaking change unfortunately.

I'll keep this updated as I will be cherry-picking this pull for my projects.

Comment on lines -32 to +33
"~objects",
"[1:recursive] (amount|number|size)"
"[1:recursive] (amount|number|size)",
"~objects"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that the order of the generics is confusing and can easily be changed, but I don't understand why you would change the register methods as well, since they follow the general principle that requires the actual 'patterns' as the last argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

property expressions are mostly used like property of %objects% so that's why Skript has always been the property first than the object types.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand. I won't be merging these changes, but feel free, like you said, to make use your own implementation.

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

Successfully merging this pull request may close these issues.

None yet

2 participants