CoffeScript adds a modulo operator %%

bearophile bearophileHUGS at lycos.com
Tue Jan 28 02:55:07 PST 2014


The latest changes in the CoffeScript language have added a 
built-in "%%" operator:

> Correct modulo operator %% (respects negatives)

https://gist.github.com/aseemk/8637896

(In Python the % operator works in this correct way.)

It's the same operator I suggested to add to D.

Bye,
bearophile


More information about the Digitalmars-d mailing list