Re: Dylan stuff
mikel evins <[email protected]>
| Newsgroups | gmane.comp.lang.dylan.gwydion.devel |
|---|---|
| Message-ID | <[email protected]> |
On Jan 17, 2013, at 2:22 AM, Bruce Mitchener wrote:
> The main thing missing there is having names for the return values (which have no meaning and are largely for documentation value).
It would be easy enough to do that, too:
(define sealed method foo ((x <fixnum>)(y <fixnum>)) => ((answer <fixnum>) (success? <boolean>) #rest more-parts)
(begin
(do-stuff-to-x)
...))
The only issue, really, is whether that's better or worse. In favor, it adds more information about the programmer's intentions. Opposed, it makes things quite a bit more verbose, and the additional names have no functional use.
_______________________________________________
hackers mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/hackers