|
Re: indenting code: msg#00077lang.smalltalk.squeak.beginners
Hi! > Hello Norbert, > > NH> I'm asking myself if there is any common sense about > NH> how to indent the code in smalltalk/squeak. > > there also must be some common sense about it but in my case lazyness > rules. > > I type without thinking about indentation and let the pretty printer > take care that every method is formatted the same. > (context menu in the code pane, more, pretty print, *after* accepting > changes) I actually never use the pretty printer even though I definitely understand those who use it like Herbert described. This is of course highly individual, but I tend to "care" too much :) (I wish I wouldn't because I am probably wasting time doing manual formatting) about how my code is formatted and don't like the results from the current pretty printers. I also can not claim any clear rules - I do it differently depending on lots of factors - the example mentioned could be formatted differently depending on length of statements and length of selectors/number of keywords. If we had a much smarter pretty printer I might perhaps use it. regards, Göran
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: indenting code, Herbert König |
|---|---|
| Next by Date: | Re: indenting code, Benjamin Schroeder |
| Previous by Thread: | Re: indenting code, Herbert König |
| Next by Thread: | Re: indenting code, Benjamin Schroeder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |