Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

Derek Zhou via Users mailing list for the GNU Smalltalk environment <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <[email protected]>
[email protected] writes:

> I'm using the underscore (_) as assignment operator;
>
> As far as I can see, both Squeak and GNU smalltalk accept and support "_" as assignment;
>
Accept, but not encourage. None of the GNU smalltak and Squeak's official
example code use it. ":=" at least is a cognate from Pascal, what else is
using "_" ?

As a language GNU smalltalk has to be compatible; as a editor package
smalltalk-mode needs to promote best practices. The problem with
underscore is it is white space sensitive, and that can throw many
people off:

a_-1
a _-1

Both are valid smalltalk expressions.

Derek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.