What is the purpose of the @ symbol in Julia?


I am new to Julia and I have seen that some functions like Threads.@threads or @printf are preceded by the @ symbol. Is this some kind of naming convention? What is its purpose?

Thank you!

1 Like

See the docs on metaprogramming here. The @ indicates a macro.

If you are coming to Julia for the first time, I highly recommend reading through the documentation, starting from the beginning. It will answer all your questions about the language.


Ok, thank you for the answer pdeffebach.