Broadcasting with assignment works with a function call on the left-hand side. However, function calls with keyword arguments do not work for some reason:
julia> f(v; a = 0) = copy(v)
f (generic function with 1 method)
julia> f([1, 2, 3]) .*= 2
3-element Vector{Int64}:
2
4
6
julia> f([1, 2, 3]; a = 1) .*= 2
ERROR: syntax: invalid syntax ; (thismodule).a = 1
Stacktrace:
[1] top-level scope
@ REPL[3]:1
Is this a known issue? I don’t see why one form should be allowed and the other one not.