This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: procedure? patch
- From: Per Bothner <per at bothner dot com>
- To: Chris Dean <ctdean at sokitomi dot com>
- Cc: Kawa List <kawa at sources dot redhat dot com>
- Date: Sat, 17 Jul 2004 00:07:12 -0700
- Subject: Re: procedure? patch
- References: <23871.1089955195@mercedsystems.com>
Chris Dean wrote:
Below is a small patch to make (procedure? some-keyword:) return false.
I'm thinking it would be better to change Keyword (back) to not
extend Procedure.
This was part of an experiment to make it easier to create XML/HTML
elements and attributes, tied to the define-namespace feature. For
example (assume html has been defined as a namespace) either:
(html:a href: "http://some-url" "click here")
or:
(html:a (href: "http://some-url") "click here")
would evaluate to:
<html:a href="http://some-url">click here</html:a>
But I'm thinking the former syntax is preferable, so we don't
need keywords to be procedures.
Furthermore, if we're to handle these kinds of expression, they should
probably be resolved/re-written at compile timw as part of lexical
name binding. We would need to do that anyway to handle attributes
is namespace, such as:
(ext:key: "value")
where key is a non-standard attribute in an extensions namespace.
Since I doubt anybody is using the feature that a keyword is a
procedure, I think we shoudl just remove it.
--
--Per Bothner
per@bothner.com http://per.bothner.com/