Peter,

Ok, I'll take a stab at the literal.  It's more or less orthagonal to the
arithmetic/logical operators, so we should be able to combine.  Let me see
if I can make progress on this in the next couple of days.

For div I think we have these options
     5  \  2
     5 div  2
     div (5,2)

I'm in favor of the backslash myself, as I seem to remember it being used in
various languages.  As long as it's not in quotes, I don't think it would
conflict with (future) escaping rules.

There's also some weird characters we could use like
   5  @  2
   5  ?  2
   5  $  2
   5  ~  2

I think most other US keyboard symbols are taken or would be confused with
other syntax.  (As an aside, I used to work with some Scandinavian
developers who used the symbol � (\u00F0) as a new operator.  Very
convenient, right in the top row of their keyboard.  They didn't seem to
understand why their US colleagues were so annoyed).

WILL

----- Original Message ----- 
From: "Peter Romianowski" <[EMAIL PROTECTED]>
To: "Velocity Developers List" <[EMAIL PROTECTED]>
Sent: Thursday, June 26, 2003 2:52 PM
Subject: Re: Velocity Numerics [PATCH]


> Will Glass-Husain wrote:
>
> > Peter,
> >
> > Sounds good on the items listed.  Definitely represent decimals with a
> > double.  There's some problems with precision, but (personally) I'd say
> > that's not significant.  (was that an unintended pun?  not sure).  Let
me
> > know if I can help with anything.
>
> If you like to do something - do it! Just tell me what you're working on
> so we don't do things twice. If you are familiar with JavaCC then you
could
> do the literal thing, though.
>
> > By the way, some languages use "\" to represent integer division.  Want
to
> > go for that instead of DIV?  If we do use 'div', I suggest lower case as
> > that's more consistent.
>
> With DIV I only ment the function not the syntax. \ could be problematic
> since it is used in some escaping. I don't have a clue right now which
> symbol we could take. If we don't find one we should use 'div' I think.
>
> Peter
>
> > WILL
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to