New Operator

Brendan Eich brendan at mozilla.org
Wed Mar 5 16:53:07 PST 2008


For the record (and top-quoting, ugh), I regret not putting integer  
division into JS back in the day. I would have called it 'div',  
though, not '\': 'a div b'. Wirth and his teaching language left old  
impressions.

/be

On Mar 5, 2008, at 2:30 PM, Lars Hansen wrote:

> I have been pushing for this in the past on several occasions, but  
> enthusiasm in the WG has been scant, unfortunately.  Maybe I  
> haven't been pushing hard enough.
>
> --lars
>
> From: es4-discuss-bounces at mozilla.org [mailto:es4-discuss- 
> bounces at mozilla.org] On Behalf Of TNO
> Sent: 5. mars 2008 14:13
> To: es4-discuss at mozilla.org
> Subject: New Operator
>
> Is it too late to propose an integer division operator into the  
> spec? I do quite a bit of WSH programming in both VBScript an  
> JScript and sometimes its a bit of an irritant during a  
> translation, it would be nice to see this operator "\" available in  
> the new ECMAScript instead of having to rely on more inefficient  
> workarounds:
>
> VBScript:
> Dim result
> result = 19 \ 4 '(result = 4)
>
> JScript:
> http://www.codingforums.com/showthread.php?t=58799
> _______________________________________________
> Es4-discuss mailing list
> Es4-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es4-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.mozilla.org/pipermail/es-discuss/attachments/20080305/4a45cc27/attachment-0002.html 


More information about the Es4-discuss mailing list