Add Callable.bind_reverse()
to later read arguments from left to right instead of right to left
#10533
Labels
Callable.bind_reverse()
to later read arguments from left to right instead of right to left
#10533
Describe the project you are working on
A co-op game online.
Describe the problem or limitation you are having in your project
When we use a Callable.bind() method, later the arguments of the function are read by default from right to left.
In the example below, I needed to write a wrapper function to reverse the args:
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Have another bind() method that can read the arguments from left to right.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
With the example above and the bind_reverse() that read the arguments from left to right:
If this enhancement will not be used often, can it be worked around with a few lines of script?
Yes, it can be done by doing a wrapper functions reversing the order of the arguments
Is there a reason why this should be core and not an add-on in the asset library?
Callable.bind() is a core function.
The text was updated successfully, but these errors were encountered: