[squeak-dev] Re: Is there a preference setting to block automatic parentheses?

Bert Freudenberg bert at freudenbergs.de
Thu Feb 26 18:54:38 UTC 2015

On 26.02.2015, at 04:05, Marcel Taeumel <marcel.taeumel at student.hpi.uni-potsdam.de> wrote:
> Okay. Tim just explained to me, what Bert's "stack" actually means, and that
> it is not necessarily a stack from an implementation point of view but
> merely a smart counter. :) 
> Sounds reasonable. And much cheaper than asking the Parser if there are too
> few closing brackets. And similar (even better) from a usability
> perspective.

What I was proposing (and what is *standard* behavior in about any code editor) has nothing to do with the parser. It is not counting any parens that are in the text already. It's not even aware of syntax. It merely temporarily keeps track of what was auto-inserted, on a single line, not globally, not forever. As soon as you move the cursor you're back to regular, non-magic editing. 

Auto-inserted parens are magic. This magic lasts until the user is done editing that single expression. It should be nothing fancy from a user's point of view. Using it should not be any more complicated than using a non-magic editor. But most importantly, the magic must not get in the way. We should delight our users with magic, not make them wish for a dumb editor because the magic is annoying.

> I will look into it later this day.


- Bert -

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4115 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150226/6181a8bd/smime.bin

More information about the Squeak-dev mailing list