Correct use of new "interpolate" #3674
-
I'm currently trying to convert my code from the old way of interpolating to the new way, i.e. to
While simply doing the old method, i.e.
gives a warning, I noticed that simply writing
doesn't throw a warning. Is interpolating via the second method (i.e. using the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
The difference is that |
Beta Was this translation helpful? Give feedback.
The difference is that
interpolate
the free function now returns a symbol for interpolation, which can be composed with other symbolic operations and evaluated later. That's the change we needed to make to increase composability.Function.interpolate
never returned anything and isn't needed as a symbolic operator, so it doesn't change.