[plt-scheme] Re: apply vs dot notation syntax
Woodhouse Gregory
gregory.woodhouse at gmail.com
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)
-1
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
http://www.gwoodhouse.com
http://GregWoodhouse.ImageKind.com
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://list.cs.brown.edu/pipermail/plt-scheme/attachments/20081005/57553aec/attachment.htm
More information about the plt-scheme
mailing list