[plt-scheme] Re: apply vs dot notation syntax

From: Woodhouse Gregory (gregory.woodhouse at gmail.com)
Date: Sun Oct 5 13:23:04 EDT 2008

When I first read about keyword arguments, I pretty much expected  
that I'd have to jump through some hoops to use them (e.g., declaring  
them in a separate module), but the Guide suggests that you can just  
use them as in

 > (define (f #:foo a #:bar b)
     (- a b))
 > (f #:foo 8 #:bar 9)

That's a bit unnerving, at least at first blush. I guess I need to do  
some more reading.

I hear and I forget.
I see and I remember.
I do and I understand.
--Attributed to Confucius, 500 BCE


On Oct 5, 2008, at 9:41 AM, Carl Eastlund wrote:

> Well, keyword arguments are very new in PLT Scheme; I don't know if
> other Schemes have them at all.  The R6RS mostly specifies features
> that were present in many Scheme implementations at the time of its
> writing.  Heck, we haven't even been using keywords in Scheme long
> enough to be sure we've "got them right", so it's not necessarily time
> to start nailing them down formally yet.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20081005/57553aec/attachment.html>

Posted on the users mailing list.