glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] USL return Patch & Unit Testing Framework


From: Martin Voelkle
Subject: Re: [glob2-devel] USL return Patch & Unit Testing Framework
Date: Thu, 3 Sep 2009 11:13:07 +0200

On Thu, Sep 3, 2009 at 11:11 AM, Martin Voelkle<address@hidden> wrote:
> On Sat, Aug 29, 2009 at 7:44 PM, Numbeast .<address@hidden> wrote:
>> While looking through the usl code I noticed Usl has no notion of operator
>> precedence. This means that while executing mathematical expressions such as
>> 1 + 2 * 3 usl returns values which seem wrong at first glance. Is this an
>> intentional omision intented to keep the intrepreter clean and simple or is
>> operator precedence a planned feature?
>
> It's an intentional omission. It could be implemented but I'm not
> convinced it's worth it.

Oh, and there is no trivial way to do it: you can define any operator
in usl: +-+, %=, etc. I don't even know what their precedence should
be.

Martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]