-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
1. Should Lin implement operator overloading?
Currently, all (but one) operations is handled directly by the VM. Type checks are made and, if matched, an specified behaviour is computed.
The one exception is the for loop, where a special __iterator() function is called, a special var$__iterator is added to the scope and the functions var$__iterator.__hasNext() and var$__iterator.__next() are called accordingly.
This made me want to open the discussion: Should this behaviour extend to other operators?
2. Should Lin implement syntax sugar for operator overloading?
The first question made me wonder weather we should add some kind of syntax sugar for operator fun, basically syntax sugar which validates how many parameters your function should have and correctly maps a cleaner name to the underlying identifiers.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested