[squeak-dev] Re: Coding style

Eliot Miranda eliot.miranda at gmail.com
Wed Mar 10 21:47:02 UTC 2010


On Wed, Mar 10, 2010 at 1:44 PM, Nicolas Cellier <
nicolas.cellier.aka.nice at gmail.com> wrote:

> 2010/3/10 Andreas Raab <andreas.raab at gmx.de>:
> > On 3/10/2010 1:30 PM, Chris Muller wrote:
> >>
> >> So it seems the main difference is that Levente prefers blocks to
> >> start on the same rather than next line.  That could probably be made
> >> a preference..
> >
> > FWIW, I think pretty-printing should be implemented by a simple visitor
> so
> > that people can trivially write their own rules. It's fair to have a few
> > preferences but I don't think a one-size-fits-all approach can possibly
> work
> > when it comes to style.
> >
> > Cheers,
> >  - Andreas
> >
>
> Among things I dont like:
>
> source:
> test
>        ^16r7F
>
> pretty print:
> test
>        ^127
>
>
+1.  But you're going to have to attach metadata to e.g. LiteralNode and get
that metadata from the number parsing.  And for fixing that, You Da Man!! :)
:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100310/7772fec3/attachment.htm


More information about the Squeak-dev mailing list