JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.58k stars 5.47k forks source link

parse of `&*s` #8301

Closed Keno closed 9 years ago

Keno commented 10 years ago

This seems like a bug:

julia> :(&*s) |> dump
Expr
  head: Symbol call
  args: Array(Any,(3,))
    1: Symbol *
    2: Expr
      head: Symbol &
      args: Array(Any,(1,))
        1: Symbol *
      typ: Any
    3: Symbol s
  typ: Any
JeffBezanson commented 10 years ago

It's implicit multiplication I believe. We should probably be stricter about only allowing this with numeric literals.