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

[REBOL] Re: [to] to block! vs to-block

From: SunandaDH:aol at: 18-Nov-2004 4:35

> In the discussion about handling "untrusted" data, I noticed that > Gabriele used "to block!" whilst Sunanda used to "to-block". I'm trying > to understand if this is just a matter of personal preference or there > is a real difference.
I'd say it was preference. I'm not often writing code that needs to be optimised to run as fast as possible,and when I am, it's unlikely to be in REBOL) so I'm usually not worried by a few per cent here and there. Most, though not all "to-xxx" words are functions, but some are natives. You can see that with this: help "to" So there is no in principle reason why a later release can't make them all native. Also, it avoids losing a console session when you type the wrong thing. Don't try this on a session you want to keep: to routine! Sunanda.