AlignAssign icon indicating copy to clipboard operation
AlignAssign copied to clipboard

New possibility: Align `->` operator

Open caspercrause opened this issue 5 years ago • 1 comments

Hey guys, I highly admire your efforts in putting together this amazing package! I've been using it for quite some time and I get a lot of compliments on how tidy my scripts look.

If I may, I really like working from left to right i.e. I prefer writing sum(x,y) -> a instead of a <- sum(x,y).

Would aligning -> be something worth looking into for you guys?

caspercrause avatar Aug 11 '20 08:08 caspercrause

I don't use rhs assign enough to justify implementing this feature.

Though, I wonder how the alignment rules would work for rhs assignment and what issues, if any, would arise from such. Assuming like it would work like this:

fun1(x) -> variable_1

f1(x) ->   var_1

seasmith avatar Aug 28 '20 19:08 seasmith