-
Notifications
You must be signed in to change notification settings - Fork 59
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
R custom string literal #48
Comments
I believe there is no problem of using macro s_mstr(x)
quote
rprint($x)
end
end there is no problem in extracting the list element by using julia> s"""
x = list(a=1,b=2)
y = x$a
"""
[1] 1 PS: unfortunately, |
Sorry, what I meant was that it might be difficult to use |
You could allow only The hardest part in JuliaInterop/MATLAB.jl#29 was determining whether a variable/expression is assigned or used. This is easier for MATLAB than other languages because the MATLAB parser sucks and can't itself handle cases that would be hard for us to handle, but it still turned out to be non-trivial. However, if you can actually get the AST from R, this might not be too hard. |
This can also be closed by #94. |
It might be nice to be able to call R code via a macro string literal, similar to this proposal: JuliaInterop/MATLAB.jl#29.
Of course, one problem would be that using
$
for variable substitution would conflict with R lookup usage.The text was updated successfully, but these errors were encountered: