Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Slashdot REBOL mention

From: joel:neely:fedex at: 30-Oct-2001 12:52

Hi, Ladislav, Ladislav Mecir wrote:
> Hi Joel, a question: > > are you a user of TCL? >
No. I've looked at it a couple of times, but haven't been able to work up the enthusiasm (or time) to really learn it. My (admittedly cursory, and lightly-held) opinion on its "dialecting" capability arises from these two observations: 1) The syntax of Tcl commands revolves around a simple verb param-a param-b param-c... statement format. 2) There's apparently a well-documented and widely-used set of conventions for writing extensions that present externally- written c functions/libraries as Tcl commands (and, BTW, for embedding Tcl as a command interpreter into c programs). Those led me to the view that it would be easy to write code (either in Tcl or as an extension) that would have the appearance of adding new verbs/commands to the language in a manner that would be indistinguishable from "built-in" features. That's the sense in which I was referring to "dialecting". Of course, that's not unique to Tcl, but it also doesn't quite fit the REBOL concept of a dialect either... -jn- -- ; sub REBOL {}; sub head ($) {@_[0]} REBOL [] # despam: func [e] [replace replace/all e ":" "." "#" "@"] ; sub despam {my ($e) = @_; $e =~ tr/:#/.@/; return "\n$e"} print head reverse despam "moc:xedef#yleen:leoj" ;