This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: procedure? patch


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]