[squeak-dev] Compiling whitespaces (was: The Inbox: Compiler-ct.418.mcz)

Chris Muller ma.chris.m at gmail.com
Thu Feb 20 00:00:06 UTC 2020


Eliot,

On Wed, Feb 19, 2020 at 1:53 PM Eliot Miranda <eliot.miranda at gmail.com>
wrote:

>
>
> On Wed, Feb 19, 2020 at 11:10 AM Chris Muller <asqueaker at gmail.com> wrote:
>
>> -1.  You mean you're not using pretty-print just before saving your
>> methods?  It already does that for you.  In fact, it even removes any
>> comments at the end, which I DON'T like...
>>
>
> I've yet to find a pretty printer I can live with.  They all fuck up my
> code.
>

Since I know you like Rectangular Block, I thought you'd like mine which I
keep in the inbox.  It's not perfect, but very good, IMO, have you tried it?


> No pretty printer deals with comments split across lines properly.
>

Mine does exactly the right thing which is to **not touch their contents**.


> There are too many edge cases.  Comments need to be formatted (see
> Behavior>>instSpec for an example).  Pretty printers appear to be god
> solutions in theory, but in practice they're half-assed.
>

Some strong words...


> Code highlighting, on the other hand, rocks. (Christoph, I can't wait to
> use requestCode:, very cool idea).
>

Is that the same as syntax highlighting?


>
>
>> Formatting and saving should remain two separate gestures, commingling
>> them would be surprising and frustrating, IMO...
>>
>
> I'm not suggesting commingling them.  All i'm suggesting is stripping
> trailing white-space on passing code to compile:classified: et al (and
> *not* in compile:classified:).
>

I don't put blank lines at the end, but I want to be able to, if I want
to.  Formatting should remain a separate gesture from saving.  Please don't
silently save my code differently than what I thought I saved.

Please simply change your pretty-printer to do NOTHING else than that.
Then it won't be "half-assed" anynmore, yes?   :)
_______
*Re: multiline comments*, I strongly prefer multiline comments to be a
single uniform paragraph and not a series of 'formatted' lines.  If you
don't care for your comments to wrap fully back to the left margin, how
about we handle it by the rendering of CodeHolder, and not making your
comments difficult to write, edit, and certainly harder to read when
whatever margin you chose is too wide for the viewer (causing half-line
wraps every other line), or rather narrow which forces them to scroll
further vertically unnecessarily.  Inserting a bunch of successive spaces
and/or tabs just to make paragraphs really complexifies comments.

 - Chris

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200219/08e20288/attachment.html>


More information about the Squeak-dev mailing list