Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In Julia you can also use var”any string” to use any string as a variable name


I'm sure you know this, but this is actually a special case of a much more general rule; in Julia, prefixed string literals are implemented are passed on to macros: https://docs.julialang.org/en/v1/manual/metaprogramming/#met...

Such macros can be defined by libraries or the end user to provide special behavior.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: