JuliaFormatter.jl icon indicating copy to clipboard operation
JuliaFormatter.jl copied to clipboard

Handling of block anonymous functions in keywords

Open IlyaOrson opened this issue 3 years ago • 0 comments

It seems that all available styles modify this call:

    shader = ShadeConf(
        indicator = function (x, y)
            if x > -.4
                return true
            end
            return false
        end
    )

to this less readable variant (imho):

    shader = ShadeConf(; indicator=function (x, y)
        if x > -.4
            return true
        end
        return false
    end)

IlyaOrson avatar Nov 26 '21 11:11 IlyaOrson