Removing underscores

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Removing underscores

Ron Teitelbaum
All,

It would appear that there is a fix for underscores but apparently the
community at large does not support them.  So although I agree that
underscores in methods and class names *SHOULD* be supported, how does the
team feel about removing them from our code?

Ron Teitelbaum

-----Original Message-----
From: Bert Freudenberg [mailto:[hidden email]]
Sent: Thursday, October 05, 2006 6:41 AM
To: [hidden email]
Subject: Re: [Cryptography Team] New Members

Well, it's a simple hack in the parser to make $_ be accepted in  
identifiers. However, it's not valid Squeak syntax and breaks  
backwards-compatibility, besides being ugly as hell ;)

It's been discussed many times, like here:

http://lists.squeakfoundation.org/pipermail/squeak-dev/2000-May/003374.html


What Parser/Compiler are you using? I know Croquet does not accept  
any underscores, not even as assignment.

- Bert -

Am 05.10.2006 um 01:19 schrieb Ron Teitelbaum:

> It works fine in my system. I have no problem with it.  The name comes
> directly from the protocol spec.  If you look closely at it defines  
> the
> spec.  I suppose that TlsDheDssWith3DesEdeCbcSha would be ok but  
> it's really
> hard to read, I like TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA much better.
> Especially since there is TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA and
> TLS_DHE_DSS_WITH_3DES_CBC_SHA etc.. This and underscores in  
> selectors really
> needs to work.  Any idea why it works on my system and not on others?
>
> Ron
>
>> -----Original Message-----
>> From: Bert Freudenberg [mailto:[hidden email]]
>> Sent: Wednesday, October 04, 2006 5:15 PM
>> To: [hidden email]
>> Subject: Re: [Cryptography Team] New Members
>>
>>> SSLCipherSuite subclass: #TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
>>
>> This is no valid identifier - where does a class with underscores in
>> its name come from?!
>>
>> - Bert -
>>
>> Am 04.10.2006 um 21:57 schrieb Ron Teitelbaum:
>>
>>> Hi Bert,
>>>
>>> There have been a number of people that have mentioned problems with
>>> underscores in selectors and in this email in class names.  I  
>>> know you
>>> worked on these problems.  Do you know why this would be failing on
>>> Max OS
>>> X?  (I don't seem to have any problems winXp - 3.9[7051] but I may
>>> have
>>> loaded some code to fix it in the past)
>>>
>>> Thanks Bert,
>>>
>>> Ron
>>>
>>> -----Original Message-----
>>> From: [hidden email]
>>> [mailto:[hidden email]] On Behalf
>>> Of Steven
>>> Elkins
>>> Sent: Wednesday, October 04, 2006 3:39 PM
>>> To: Cryptography Team Development List
>>> Subject: Re: [Cryptography Team] New Members
>>>
>>> On 10/3/06, Ron Teitelbaum <[hidden email]> wrote:
>>>
>>>> I see we have a few new members.  If you feel so inclined please
>>>> introduce
>>>> yourself and let the team know what areas you are interested in.
>>>> This
>>> team
>>>> is small so we try to encourage as much participation as possible.
>>>
>>> Hi Ron,
>>>
>>> First, thanks to you and the other members of the Cryptography team.
>>>
>>> I'm interested in the pure Smalltalk solution first, just because I
>>> think it's the path of least resistance.  Maybe I'm wrong.  :)  I
>>> found a load order in another cryptography list message, downloaded
>>> the latest version of everything from SqueakSource, and started
>>> loading them from a FileList.
>>>
>>> Cryptography-Core-rww.17.mcz
>>>     leaves CryptographyError in Undeclared
>>> Cryptography-SHA1-rww.8.mcz
>>> Cryptography-MD5-cmm.2.mcz
>>> Cryptography-DES-hmm.3.mcz
>>>     leaves interpreterProxy in Undeclared
>>> Cryptography-SHA256-RJT.5.mczCryptographyBase-hmm.18.mcz
>>>     defines CrytographyError
>>> Cryptography-ElGamal-cmm.3.mcz
>>> Cryptography-RSA-rww.5.mcz
>>> Cryptography-Rijndael-RJT.7.mcz
>>> Cryptography-ASN1-RJT.17.mcz
>>> Cryptography-RC4-rww.3.mcz
>>> Cryptography-DSA-rww.3.mcz
>>> Cryptography-X509-rww.21.mcz
>>> Cryptography-SSL-rww.93.mcz
>>>
>>> SSLCipherSuite subclass: #TLSNothing more expected
>>> ->_DHE_DSS_WITH_3DES_EDE_CBC_SHA
>>>     instanceVariableNames: ''
>>>     classVariableNames: ''
>>>     poolDictionaries: ''
>>>
>>> Probably the underscores.  :)  I was using an untouched 3.9g-7061 on
>>> Mac OS X when I saw this.  Should I use another image?  Change some
>>> preferences?  File something else in first?  Read every bit of the
>>> cryptography list archives?  Load in some other way?
>>>
>>> Load in some other way.  I restarted the same image and installed
>>> Cryptography 0.3 from SqueakMap.  No underscore problem but it still
>>> leaves #interpreterProxy in Undeclared.  Selected Cryptography-ASN1
>>> and Cryptography-Tests in the Test Runner.  Errors.  Loaded...
>>>
>>>     Cryptography-DES-hmm.3.mcz
>>>
>>> ...and all but 2 of 23 passed, an assertion failure in
>>> CryptoTest>>testDSASigningAndVerifying and an error,
>>> MessageNotUnderstood (#unsignedLongAt:bigEndian) in the send chain
>>> that starts with encryptBlock: in CryptoTest>>testDES2.
>>>
>>> I'll be happy to provide more information if you want, load other
>>> versions of whatever, or perform other experiments, time  
>>> permitting of
>>> course.
>>>
>>> Keep up the good work,
>>> Steve
>>>
>>>
>>> --
>>> How wonderful it is that nobody need wait a single moment
>>> before starting to improve the world.       -- Anne Frank
>>> Paradise is exactly where you are
>>> right now...only much, much better.    -- Laurie Anderson
>>> _______________________________________________
>>> Cryptography mailing list
>>> [hidden email]
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/
>>> cryptography
>>>
>>
>>
>




_______________________________________________
Cryptography mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/cryptography