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
We're not using function_like right now. We inherit from callable and override the fns. The main reason is that inheritance grants us default behavior for all arities we don't care about. That default behavior throws an arity exception. By using a concept for this, we'd need to have every callable implement every arity. Most of them would just throw the arity exception anyway.
I have a local TODO that we might be able to use CRTP with callable so that virtual dispatch is not required. This would require some exploration, though.
var
should implement callable directly.TODO is here
jank/compiler+runtime/src/cpp/jank/runtime/behavior/callable.cpp
Line 712 in 7ecc570
function_like
is here:jank/compiler+runtime/include/cpp/jank/runtime/behavior/callable.hpp
Line 201 in 7ecc570
The text was updated successfully, but these errors were encountered: