Just to mix things up.
Maybe we should look at making min and max operators instead of functions.
The we can use something like "?>" for max and "?<" for min. There are
some other problems this causes like what are ther precedence but
I don't think that much of an issue.
If we are going to keep them as functions my vote is for minimum and maximum
or minOf maxOf.
Regards,
John
Henrie, Roland @ CSW-SLC wrote:
> I agree with Steve about the inconsistency of using "minimum" and "max."
>
> I would prefer the common "min" and "max." Is there some ambiguous case
> such that "min" really shouldn't be allowed if they are both visible? I
> guess since this isn't readily available, I would most like to keep them
> easy to remember. I am thinking that "maximum" would be easier to remember
> than the pre or post-character. However "minm" seems like an abbreviation
> and might be memorable.
>
> Some other commonly used abbreviations are:
>
> minXY, maxXY
> minval, maxval,
> min_num, max_num.
>
> However, I think "minimum" and "maximum" are fine (they are the same length
> as the final two).
>
> Roland Henrie
>
> -----Original Message-----
> From: Bailey, Stephen [mailto:SBailey@model.com]
> Sent: Thursday, June 24, 2004 12:14 PM
> To: vhdl-200x-ft@eda.org; vhdlsynth@vhdl.org
> Subject: RE: [vhdl-200x-ft] RE: Problem with FT04
>
>
> Personally, I don't like the inconsistency of spelling one out and
> abbreviating the other. I prefer to do it the same way even if it is a lot
> more characters.
>
> BTW, I still consider myself a VHDL coder (designer is too strong) and I do
> not like extra typing where there is no value to it. I also happen to be a
> decent typist (40+ words a minute); better than most VHDL coders.
>
> -Steve Bailey
>
> > -----Original Message-----
> > From: owner-vhdl-200x-ft@eda.org
> > [mailto:owner-vhdl-200x-ft@eda.org <mailto:owner-vhdl-200x-ft@eda.org> ]
> On Behalf Of David Bishop
> > Sent: Thursday, June 24, 2004 11:43 AM
> > To: Bailey, Stephen
> > Cc: vhdl-200x-ft@eda.org; vhdlsynth@vhdl.org
> > Subject: Re: [vhdl-200x-ft] RE: Problem with FT04
> >
> > I hate to make this recommendation, but how about this:
> >
> > function minimum (L, R: T) return T;
> > function max (L, R: T) return T;
> >
> > because:
> > 1) We can't make it "min" (name space violation, existing code).
> > 2) VHDL people don't seem to mind typing.
> >
> > Bailey, Stephen wrote:
> > > Minimum and Maximum seem a bit overkill, but if there's no
> > other acceptable option then they'll do.
> > >
> > > As an option, how about a single letter prefix or suffix?
> > Suggestions:
> > >
> > > - minm, maxm
> > > - mmin, mmax
> > >
> > > -Steve Bailey
> >
> >
> >
> > --
> > David W. Bishop dbishop@vhdl.org All standard disclaimers apply.
> >
> >
>
-- -- mailto: johnr@model.com phone: (503)685-0864 -- http://www.model.com fax: (503)685-0921 --Received on Thu Jun 24 13:39:03 2004
This archive was generated by hypermail 2.1.8 : Thu Jun 24 2004 - 13:39:32 PDT