Re: [stack] Re: Joy and code readability

John Nowak <[email protected]>
Newsgroups gmane.comp.lang.concatenative
Message-ID <[email protected]>
On Apr 1, 2009, at 5:25 AM, fabio_cevasco wrote:

> Could you elaborate a bit more on stack comments? You mean writing  
> (in Joy) something like:
>
> (* A -> A A *)

Yep.

> Which concatenative languages verify these comments?

Factor does. Cat may allow them; it's been awhile since I've looked at  
it. Cat will, however, automatically infer the effect in question for  
you.

> Do they expect comments after the code they refer to, e.g. something  
> similar to:

I believe it is only allowed for definitions as such:

    : over ( a b -- a b a ) [ dup ] dip swap ;

- John
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.