-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Is your feature request related to a problem? Please describe.
Currently, properties must be valid ByteSkript identifiers. For most properties, this is fine, but consider something like the last login date
of a Minecraft player. How might this be accessed in ByteSkript, given a player object? There are two existing solutions to this problem:
- A custom expression. It's clear why this is undesirable: it's tedious, it requires a lot of boilerplate, and it duplicates the standard property syntax.
- Use a non-english identifier as the property name. For the
last login date
property,lastlogindate
could be used. This is obviously also suboptimal. ByteSkript is supposed to help you program with the power of words, not word.
Describe the solution you'd like
Allow for spaces or other non-identifier characters in property names.
Describe alternatives you've considered
See above. Alternatives exist, but they suck.
Additional context
Care must be taken when implementing this — I'm not sure of the implications a change like this would have on ByteSkript's pattern matching.
Metadata
Metadata
Assignees
Labels
No labels