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

Removed whitespaces in macros

JoshuaLampert opened this issue · comments

Using the sciml style

@assert 1 == 1
@assert 1 == 1 "error"
@assert (1 == 1) "error"

gets formatted to

@assert 1 == 1
@assert 1==1 "error"
@assert (1==1) "error"

I would expect whitespaces around binary operators. I would also not expect different behavior depending on whether there is an error message or not.

cc @sloede, @ranocha