Closed mauro3 closed 3 years ago
I believe getting the source location was the only reason for using macros but I do not really remember.
This would work:
rfs = RemoteFileSet(
"Some description",
set1 => RemoteFile("file://~/myfile.txt"; file = "localname.txt"),
set2 => RemoteFile("file://~/myfile.txt"; file = "localname.txt"),
)
The version i posted (using =
not =>
) actually works. As I'm not using the automatic "source", I just use the non-macro version. Maybe worth to add that to the docs?
The macro expansion of
@RemoteFile
isarguably just using
would be clearer? (There is the issue of
__source__
but that would be solved by dropping that, x-ref: #13)Similarly for
@RemoteFileSet
, why not just