Any plans for first-class function support in sound type mode? #1975
Closed
lee-sihun
started this conversation in
Static Hermes
Replies: 1 comment 3 replies
-
|
Functions work as values perfectly fine, as can be seen from this example: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a question about treating functions as values in Static Hermes' sound type mode.
Currently in sound type mode:
Because of this, using callback patterns or object method patterns in typed code requires relying on
anycasts and"use unsafe".In #1269, you mentioned that callbacks are not yet supported but are planned, and in #1688, you mentioned WIP code for compile-time native callback wrappers. Are these related to function type support at the sound type level, or are they separate efforts?
Are there any plans or a roadmap for first-class function support in sound type mode?
Beta Was this translation helpful? Give feedback.
All reactions