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

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


> 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...


Alexandre Bergel  http://www.iam.unibe.ch/~bergel

Posted on the users mailing list.