Skip to content
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

Deep copy: add native fallbacks for objects in js/py #47

Open
kMutagene opened this issue Jan 3, 2025 · 1 comment · May be fixed by #46
Open

Deep copy: add native fallbacks for objects in js/py #47

kMutagene opened this issue Jan 3, 2025 · 1 comment · May be fixed by #46
Labels
Status: Needs Triage This item is up for investigation.

Comments

@kMutagene
Copy link
Member

Dictionary type matches are not transpiled, so we loose the case where we have objects at hand. this needs a proper native fallback

@github-actions github-actions bot added the Status: Needs Triage This item is up for investigation. label Jan 3, 2025
@kMutagene
Copy link
Member Author

For reference, it seems like Dictionaries are transpiled as Map in js, and as dict in py.

See repl

I think this typecheck should be possible to implement in fable directly, but for now a workaround that checks instanceof Map in JS or isinstance dict in py.

@kMutagene kMutagene linked a pull request Jan 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage This item is up for investigation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant