- About Scala
- In the Enterprise
- Scala Community
- Language Research
- In the Press
- The Scala Team
- Scala's Prehistory
- Contact Us
- Learning Scala
- Tour of Scala
- Scala API
- Setup & Getting Started
- Programming Guides
- Other Guides
- Code Examples
- Scala Developers
Re: Re: Scala tool for formatting the source code
Sun, 2011-02-20, 11:16
On 20 Feb 2011 10:10, "Philippe Lhoste" <PhiLho [at] gmx [dot] net> wrote:
> On 19/02/2011 16:01, Randall R Schulz wrote:
>> I really don't think this sort of program is a useful thing and I don't
>> think it's good for people to have it or to use it. I very strongly
>> believe that we should write our code the way we want it written. What
>> is the real motivation for writing code in a form other than the way
>> you want it?
> Sometime, you get code that isn't your. It can be written by a messy coder or one using conventions that irks you; it can have been messed up by HTML formatters, or imperfect merge tools, etc.
> Such tool can be useful to get at least something readable, for code inspection / study.
> Or just to format to your own rules, when you accept code useful for your open source project, from a programmer not disciplined enough to follow your coding style.
There's also the whole category of code generators, Java->Scala converters, decompilers, etc. Where it's nice to have a common tool that every such project can share, instead of having to reinvent the wheel each time...
> Philippe Lhoste
> -- (near) Paris -- France
> -- http://Phi.Lho.free.fr
> -- -- -- -- -- -- -- -- -- -- -- -- -- --