[REBOL] Re: Don't understand "try" and "disarm"
From: tim-johnsons:web at: 15-Mar-2006 10:53
* Jeff Massung <massung-gmail.com> [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
>> test/a ;; if 'placeholder' is word, can be path
;; Or this (I know a little lisp, but know python better
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 Johnson <tim-johnsons-web.com>