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
I've followed a pattern of using Prism to find source locations, then modifying the source code string around those locations.
But this feels fragile. For example, in one experiment, escaping got a bit messy to avoid injections.
Does Prism offer ways of modifying code via nodes? E.g. "insert an X node after this other node I found", or "change the value of this integer node from 1 to 2" or similar? Or is that considered outside its scope? Didn't spot anything in the docs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi! I've played with Prism + require-hooks for metaprogramming, inspired by strict_ivars.
I've followed a pattern of using Prism to find source locations, then modifying the source code string around those locations.
But this feels fragile. For example, in one experiment, escaping got a bit messy to avoid injections.
Does Prism offer ways of modifying code via nodes? E.g. "insert an X node after this other node I found", or "change the value of this integer node from 1 to 2" or similar? Or is that considered outside its scope? Didn't spot anything in the docs.
All reactions