-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow interpolation into @remote calls #53
Comments
It looks like I can wrap this into an
|
We should definitely do this. I'm surprised I didn't do it already! (If I recall, I did this exact thing in the SQLStrings/SQLREPL packages.) |
Do you know the appropriate way to do this? I am very inexperienced around macros. |
I know how to do it, I just don't have that much time 😅 We should try something like
|
Sounds good. I am also pressed for time, but I think it is perfectly fine to keep this issue open as a FR. Perhaps adding a temporary paragraph in the docs about the workaround I found, in case this issue remains open for months/years? |
Based on this thread, it is possible to process a macro to allow interpolating of values. My use case is that I want to define something like
to make it feel like a pure julia function. If I do not interpolate, I get an error from
addr
andbit
not being defined remotely, which makes sense. However, I can not interpolate the arguments into the call to@remote
, due to aRemoteException
:The fix would perhaps be to do something like benchmark-tools, as seen in the linked post, to allow interpolation?
The text was updated successfully, but these errors were encountered: