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
Extract Hedgehog Runtime (transpiler, internal classes Mat and Sym, math and linear algebra functions, preprocessor) as a separate JavaScript runtime & package
#41
Open
lidangzzz opened this issue
Jul 19, 2020
· 4 comments
@lidangzzz can you upgrade babel-template to @babel/template, because i can't compile babel-template correctly but @babel/template works well.
Upgrading to @babel/template will break current operator-overload.js because
I will try to upgrade babel template later, could you explain a little bit more about what's the compiling error? Also my implementation of operator overload is TOTALLY different from Rob's implementation( https://github.com/rob-blackbourn/babel-operator-overload-plugin ). Here are all scenarios that we need to consider:
Mat_object [op] Mat_object
Mat_object [op] scalar
Mat_object [op] 1D/2D_array_of_number
number [op] Mat_object
1D/2D Array of number [op] Mat_object
Sym_object [op] scalar
scalar [op] Sym_object
Sym_object [op] Sym_object
So when we are trying to implement a Babel plugin, it's NOT an operator overload of ClassFoo [op] ClassFoo. Instead it should always cover all possible combination above.
No description provided.
The text was updated successfully, but these errors were encountered: