Re: Modified Proposal ... - modified syntax for "export"


Subject: Re: Modified Proposal ... - modified syntax for "export"
From: Andrzej Litwiniuk (Andrzej.Litwiniuk@synopsys.com)
Date: Fri Nov 22 2002 - 06:39:36 PST


> One quibble here:
> > > However I kind of like the flow of the english sentence better with
> > > "as".
> > >
> > > export [modulename::] function fname [as cname];
> > > Kind of rolls off the tongue easier don't you think ?
> >
> > Well, I can recall COBOL: "ADD A TO B GIVING C ON ERROR GO TO ..."
> > which was definitely more intuitive than C: "while(*p++|=*q++);".
>
> How about we keep the [modulename::] token smashed right
> together with the fname token, as in C++ class::memberFunc?
> I don't really like having the keyword function stuck right
> in the middle of those two closely-related user identifiers.
> Thus I would propose:
>
> export function [modulename::]fname [as cname];
>
> I would also be OK with Andrzej's proposal. I like the
> way the "as" rolls off the tongue, but it is adding to
> the keyword list :(
>
> Thanks and regards,
> Doug

How about: export [cname =] [modulename::]fname;

No new keyword, no redundant 'function', "c = f" reads more smoothly than "f c"?

Andrzej



This archive was generated by hypermail 2b28 : Fri Nov 22 2002 - 06:40:35 PST