4 ms·
It's not really the same. Non-standard string literals in Julia are an adaptation of Common Lisp reader macros (which is much older than LINQ), which is a type
by ddragon 7y ago
It's not really the same. Non-standard string literals in Julia are an adaptation of Common Lisp reader macros (which is much older than LINQ), which is a type of macro that allows to fully ignore the parser of the language for parts of the code (allowing you to create other parsers and therefore you're able to embed completely new languages). For example Julia allows to write sections in R [1] or C++ [2] using this technique. There are LINQ inspired libraries in Julia as well [3], but they are usually based on normal macros and use the standard Julia parser (just like LINQ is directly supported by the C# parser). Both types of macro execute entirely at compile time ultimately converting to normal Julia code at runtime.
[1] https://juliainterop.github.io/RCall.jl/stable/gettingstarted.html#@R_str-string-macro-1 https://juliainterop.github.io/RCall.jl/stable/gettingstarte...
[2] https://github.com/JuliaInterop/Cxx.jl https://github.com/JuliaInterop/Cxx.jl
[3] https://www.queryverse.org/Query.jl/stable/linqquerycommands/ https://www.queryverse.org/Query.jl/stable/linqquerycommands...