-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] FsTable and FsRangeBase inerhitance fable issues #56
Comments
Is inheritance in general a problem for Fable? Or for JS? |
From what i see inerhitance does not work the same way in js. it is transpiled such that the code still works. but ColumnCount is not a member of FsTable, but of FsRangeBase. Js Syntax could be improved by adding "[]" to FsBaseRange, but i don't think this will make the fsrangebase members accessible from fstable. |
So if I understand you correctly, it is a must to have no inheritance in F# projects that you want to have transpiled to JS. |
AttachMembers would make it usable, albeit a bit unintuitive. |
Same question as in the other issue: Do we need these classes easily accessible? The frontend API should be designed in a way that you don't have to mingle with them. |
ColumnCount is part of the inheritance of
FsRangeBase
. Using this language construct the transpiled javascript code i not easily accessibleFsRangeBase__ColumnCount(fstable)
. Maybe this needs some testing or must be refactoredThe text was updated successfully, but these errors were encountered: