REBOL/core does not define words to support this, but you can always create
your own dialect, or simply extend the word set to do so.

I've never considered specifying return types for functions. I suppose they
could catch an error every now and then when the function returns something
you don't expect (just like argument types).

- Michael Jelinek

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 04, 2000 9:15 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] Return types



One thing that bothers me is that I can't specify a return type for
functions in REBOL. Many people consider this to be a bad idea so I'm
wondering what the idea behind this is.

There are obviously advantages and disadvantages with this, but do the
advantages really outweigh the disadvantages?

Gisle

Reply via email to