Valid syntax:
function myfunc(x::T) where {T}
x
end
Invalid syntax:
function myfunc2(x::T)
where {T}
x
end
Error message for invalid syntax
ERROR: LoadError: syntax: space before "{" not allowed in "where {"
Valid syntax
function myfunc2(x::T)
where{T}
x
end
That鈥檚 funny. Would be nice to allow the where on the next line if possible.
Most helpful comment
Valid syntax