Higgs, a JavaScript JIT done in D

deadalnix deadalnix at gmail.com
Tue Feb 5 21:55:52 PST 2013


On Sunday, 3 February 2013 at 13:56:13 UTC, bearophile wrote:
> deadalnix:
>
>>> The code seems to miss the usage of contracts, foreach loops 
>>> on numerical intervals, final switch, toString with sink, 
>>> text() function, enum for compile-time constants, most const 
>>> arguments, const on methods.
>>>
>>
>> My experience tells me that this is probably a good idea if 
>> you don't want to run into weirdland.
>
> Among those things I have listed, probably the only ones that 
> give a little of troubles are const on methods.
>
> The author has used asserts at the beginning of methods, 
> outside a the pre-condition, this is silly.

I faced memory corruption in out contract and invariants in the 
past. So I can't really blame people that don't want to run into 
such trouble.


More information about the Digitalmars-d-announce mailing list