domluna / JuliaFormatter.jl

An opinionated code formatter for Julia. Plot twist - the opinion is your own.

Home Page:https://domluna.github.io/JuliaFormatter.jl/dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

let functions rewrite to invalid syntax

untoreh opened this issue · comments

let hello() = begin
        print("ok")
    end
    hello()
end

let hello() = print("ok");
    hello()
end

get rewritten to

let function hello()
        print(
            "ok",
        )
    end
    hello()
end

config

style="blue"
margin=10
always_use_return=false
remove_extra_newlines=true
overwrite=false
pipe_to_function_call=false