[plt-scheme] keywords (a backward-incompatible change)

From: Alexandre Bergel (bergel at iam.unibe.ch)
Date: Sat Oct 1 10:51:49 EDT 2005

Hello,

> Have you considered colon-suffixed keywords?

Smalltalk uses colon-suffix to provide parameter when calling a method.
For instance: myDictionary includesKey: aKey ifAbsent: [self error:  
'key not found']
The receiver is myDictionary, the message is includesKey:ifAbsent:  
and the arguments are aKey and [..]

I find this way of writing quite elegant...

Cheers,
Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Posted on the users mailing list.