3 ms·
This approach seems nice in that it fast-tracks the common case and only delegates if needed. > it allows to handle all operators by defining a single method,
by xscott 6y ago
This approach seems nice in that it fast-tracks the common case and only delegates if needed.
> it allows to handle all operators by defining a single method,
That's nice and pragmatic too.
Back to the subject of this submission, I suspect the coerce idea could be bolted onto Wren without really breaking or changing much of anything (just an additional branch in the error handling of Wren's builtin Num type). That would allow Wren to grow it's own numpy-like library someday.