Hi Nicolas The formatter is dumb. I wonder where you see this problem? Formatting method in Nautilus works fine. Try checkbox "format as you read" or menu command "Format". 2017-07-19 23:23 GMT+02:00 Eliot Miranda <[hidden email]>:
|
In its day, I recall that OTI Smalltalk was changed mid way in its life to preserve some original formatting as much as possible (and there were also tons of customisations to tune it well) - I recall much of the discussion was around vertical whitespace preservation. At the time, I remember we configured it so that the results were pretty good and I had no issues with pressing reformat very frequently.
It is true that Pharo needs more work in this area as it would be nice to have a beautiful formatter. We need some folks to pile in. Tim
|
In reply to this post by Denis Kudriashov
2017-07-20 10:02 GMT+02:00 Denis Kudriashov <[hidden email]>:
Hi Denis, you're right, for literal numbers it's been solved in Pharo at least since 3.0, or maybe even 2.0 (by usage of RB AST I guess). That's a major improvment over Squeak which is is certainly where I last encountered the problem. Still, formatting does mess line breaking/indenting/commenting in literal arrays.
|
> Hi Denis,
> you're right, for literal numbers it's been solved in Pharo at least since > 3.0, or maybe even 2.0 (by usage of RB AST I guess). > That's a major improvment over Squeak which is is certainly where I last > encountered the problem. > > Still, formatting does mess line breaking/indenting/commenting in literal > arrays. Yes I would love to have a better heuristics. Now we refactored the prettyprinter so it should be easier to play and enhance it. |
Free forum by Nabble | Edit this page |