[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extending parser to accept '_' in numbers
From: |
Rik |
Subject: |
Re: Extending parser to accept '_' in numbers |
Date: |
Tue, 6 Oct 2015 10:51:03 -0700 |
On 10/06/2015 09:54 AM, Mike Miller wrote:
> On Mon, Oct 5, 2015 at 14:16:53 -0700, Rik wrote:
>> The next thing I'd like to do is add support for binary constants. It's
>> nice that Octave accepts hex constants '0x...', but working in electrical
>> engineering I often find that I would like to write a binary constant '0b...'
> Definitely! Is there a bug/task tracker item for this or do you expect
> it to be quick and painless enough that there's no need?
No need, it's pretty small. I just coded it up and it took 40 minutes. Of
course, I now need to benchmark it and make sure it doesn't hurt performance.
--Rik