Closed giann closed 2 years ago
Not exposed to the language yet. Do something like:
extern fun somethingCustom() > ud;
ud userData = somethingCustom();
Later we could allow to define a user type for specific user data:
extern fun somethingCustom() > ud(Info);
ud(Info) info = somethingCustom();
ud willFail = somethingCustom(); | would fail
Special type wrapping an opaque pointer