I am not sure why you need this in Julia, which does not require that you declare variables.
Please provide an MWE with some context to clarify.