allow crosslinking via automatic instance => link conversion #5

Open
opened 2021-05-08 13:43:11 -04:00 by valyrie97 · 1 comment
valyrie97 commented 2021-05-08 13:43:11 -04:00 (Migrated from github.com)
There is no content yet.
valyrie97 commented 2021-05-21 23:50:30 -04:00 (Migrated from github.com)

passing instances as parameters should not be supported, however, the this context of each instance function is the instance... can we make that the proxy? should we?

the this should have access to local variables, and if we use it to pass to other functions, for performance reasons, we dont intercept.

maybe we should...

IDEA, just throw each function that gets injected into context around a wrapper that automagically typechecks the parameters for instancedom.

hard for deep params i guess... man, shit sucks huh?

maybe just leaving it the way it is, and having an easy way to refer to your link should exist.

like its not insane to say const self = this._link or just document that this._link is the link to yourself, whereas this, is your internal operating context and shouldnt be leaked to anything else...

INPUT??

passing instances as parameters should not be supported, however, the this context of each instance function is the instance... can we make that the proxy? should we? the this should have access to local variables, and if we use it to pass to other functions, for performance reasons, we dont intercept. maybe we should... IDEA, just throw each function that gets injected into context around a wrapper that automagically typechecks the parameters for instancedom. hard for deep params i guess... man, shit sucks huh? maybe just leaving it the way it is, and having an easy way to refer to your link should exist. like its not insane to say `const self = this._link` or just document that `this._link` is the link to yourself, whereas this, is your internal operating context and shouldnt be leaked to anything else... INPUT??
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: valerie/vogue#5
There is no content yet.