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
Now, one could stringify and parse out parameters, but with decorators and such that would be brittle/insane. So a reflection would be expected for functions. I'd expect something similar to a property descriptors object except they're ordered, so an array.
Function.reflect(A.prototype.f);
The returned value would be an array in order to handle overloaded functions:
I could use this to build say a REST routing system connecting up basic type validation.
Would connecting metadata to this structure be intuitive? I think it would, but I'm not sure how well it would scale with interface types which also have decorators and such. Should work I believe.
One issue missing with parameter decorators in general and for types is the ability to get parameters information and types.
Now, one could stringify and parse out parameters, but with decorators and such that would be brittle/insane. So a reflection would be expected for functions. I'd expect something similar to a property descriptors object except they're ordered, so an array.
The returned value would be an array in order to handle overloaded functions:
I could use this to build say a REST routing system connecting up basic type validation.
Would connecting metadata to this structure be intuitive? I think it would, but I'm not sure how well it would scale with interface types which also have decorators and such. Should work I believe.
The text was updated successfully, but these errors were encountered: