drforr / perl6-Perl6-Tidy

Tidier for Perl 6 code
16 stars 7 forks source link

Add support for K&R formatting style. #4

Closed ghost closed 6 years ago

ghost commented 6 years ago

It would be great if Perl6::Tidy support K&R C commonly used formatting style.

drforr commented 6 years ago

I thought that was one of the choices I offered, but it's been a while since I've looked at the code. I basically borrowed Wikipedia's brace styles and assumed that K&R was among the list of alternatives. You can always look at the documentation for more info...

ghost commented 6 years ago

Oh my bad. I just learned what 1TBS supposed to mean and how the formatting looks. Both are identical it seems.

drforr commented 6 years ago

Heh. I'll add a note in the doco and maybe an alias for K&R - I guess the '&' was what I was most concerned about.

drforr commented 6 years ago

I'm also grateful that someone actually recognized this as an omission - it means the code is out there and actually being used, which is wonderful.