Make function arguments positional or keyword

I think I saw somewhere that

f(x) = begin
    y = x + x
    println(y)
end

was deprecated as recommended style in favour of

function f(x)
    y = x + x
    println(y)
end

so I thought only the really compact format was recommended?