snazzy-d / sdc

The Snazzy D Compiler
MIT License
246 stars 55 forks source link

Formatting of functions using `=>` instead of return #359

Open nordlow opened 7 months ago

nordlow commented 7 months ago

Can we have sdfmt format

struct S {
    int ________________________________________________________(int x) => x + 1;
}

as

struct S {
    int ________________________________________________________(int x)
        => x + 1;
}

instead of current

struct S {
    int ________________________________________________________(int x) =>
    x + 1;
}

.