Re: Dylan stuff

mikel evins <[email protected]>
Newsgroups gmane.comp.lang.dylan.gwydion.devel
Message-ID <[email protected]>
How about something like this?

(define sealed method foo ((x <fixnum>)(y <fixnum>)) => (<fixnum> <boolean> #rest)
  (begin
    (do-stuff-to-x)
    ...))

Some of this is traditional old prefix Dylan; some is new. it clear what all the novel bits mean? How is it, aestehtically?

For comparison, here's how you would say the same thing in Bard (except the "sealed" bit, which Bard doesn't have):

(def foo (function Integer Integer -> Integer Boolean &))

(define method (foo x y)
  with: ((x <fixnum>)(y <fixnum>))
  (begin
    (do-stuff-to-x)
    ...))

_______________________________________________
hackers mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.