* Jeff Massung <[EMAIL PROTECTED]> [060315 09:05]:
>
> One important concept that REBOL can simulate, but doesn't have
> intrinsically, that I miss from Lisp is that of keywords. Keywords (in Lisp)
> are symbols that are bound to themselves. This is used for many things, but
> most commonly for enumerated values.
>
;; Do you mean like this:
>> test: [a 1 b "two" c 3.3]
== [a 1 b "two" c 3.3]
>> select test a
** Script Error: a has no value
** Near: select test a
>> test test 'a ;; word must be quoted
== a
>> test/a ;; if 'placeholder' is word, can be path
== 1
>> test/b
== "two"
>> test/c
== 3.3
;;
;; Or this (I know a little lisp, but know python better
def td(**kw):
for k in kw:
## do something with k, but check against
## internal dictionary
print td(bgcolor="red",align="right",data="cell contents")
Can be emulated in rebol, but haven't tried it.
tim
--
Tim Johnson <[EMAIL PROTECTED]>
http://www.alaska-internet-solutions.com
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.