Allowing Python-style invocation of forward() #563
NiklasGustafsson
started this conversation in
Ideas
Replies: 1 comment
-
IMHO, it would be better to overload some operator a la piping. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We can, in limited situations, support Python-style invocation of modules, i.e.
module(t)
instead ofmodule.forward(t)
by introducing:It would only work in situations where the module is converted to a function reference, such as a call or variable assignment, not directly in an expression.
In other words, this would work:
but not this:
Is this silly or useful?
Beta Was this translation helpful? Give feedback.
All reactions