Julia: Weird error with `$var` and interpolation

Created on 18 Aug 2019  路  4Comments  路  Source: JuliaLang/julia

julia> function build_variable(var::Expr)
         throw(error("Expected $var to be a variable name"))
       end
ERROR: syntax: missing comma or ) in argument list
Stacktrace:
 [1] top-level scope at none:0

julia> versioninfo()
Julia Version 1.3.0-rc1.0
Commit 768b25f6a8 (2019-08-18 00:04 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, ivybridge)
bug

Most helpful comment

Absolutely going to be fixed. By reverting #32408 if necessary, though I think we can save it.

All 4 comments

So will this be fixed in the final 1.3 release? By fixed I mean working as in 1.0 and 1.1.

Yes it will be fixed.

Absolutely going to be fixed. By reverting #32408 if necessary, though I think we can save it.

Was this page helpful?
0 / 5 - 0 ratings