You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
more intuitive. However, I disagree that this is more intuitive. As someone learns Python in fact this begins to become less and less intuitive to the point that without our documentation suggesting the correct ordering, a Python expert would write,
Given our recent decorator ordering requirements we are already making users come to understand decorators apply bottom to top.
Suggestion
I think we should apply conditions in the order they come in the execution (i.e. bottom to top). As an irrelevant side note this would make the project definition run faster.
The text was updated successfully, but these errors were encountered:
I don't have a strong opinion on which visual ordering is more intuitive to users, I'll let others chime in on that discussion. I do agree that matching the decorator ordering to the behavior of the imperative API makes sense, and that the recent changes are forcing more explicit discussion of the implications of decorator evaluation and ordering anyway, so I'm not opposed to this change.
AFAIR we document the condition ordering in only one place, and I don't know how many people are really aware of this, so I don't anticipate this being a big surprise to users if there is support for it.
Description
Currently we execute operation decorators from outside in or top bottom. This is confusing when using decorators as functions directly.
This actually runs the expensive computation first. This is to make this
more intuitive. However, I disagree that this is more intuitive. As someone learns Python in fact this begins to become less and less intuitive to the point that without our documentation suggesting the correct ordering, a Python expert would write,
Given our recent decorator ordering requirements we are already making users come to understand decorators apply bottom to top.
Suggestion
I think we should apply conditions in the order they come in the execution (i.e. bottom to top). As an irrelevant side note this would make the project definition run faster.
The text was updated successfully, but these errors were encountered: