ERROR: syntax: unexpected semicolon in tuple around REPL

Likely because (; ...) is reserved syntax for NamedTuple. Generally speaking, () is for creating tuple and it isn’t a compound expression, even just writing:

julia> (c, s = cos(t), sin(t))
ERROR: syntax: invalid named tuple element "sin(t)" around REPL[6]:1

You can write: begin c, s = cos(t), sin(t); [c s; -s c] * A end

2 Likes