Re: (Almost) everything is expression

2011-11-11 Thread Neil Eades
On 11 November 2011 15:33, Mark S. Miller erig...@google.com wrote: Insist on enclosing parens, since ( introductory-token is not otherwise legal let a = ({ print('doing stuff'); 100; }); Even the last is now easily unambiguous. And is this not clearer than let a = {||

Re: More thoughts on Allen’s class definition pattern

2011-10-31 Thread Neil Eades
On 31 October 2011 15:23, Allen Wirfs-Brock al...@wirfs-brock.com wrote: some others (probably all too long for Brendan's tastes): I would assume a two word combination such as super for would be too verbose to be acceptable. -- Neil ___

Problem with algorithm for Number.prototype.toPrecision

2011-10-01 Thread Neil Eades
I am trying to improve the compliance of our interpreter with EcmaScript 5.1, and have just been working on the implementation of toPrecision. I'm not sure that the algorithm given is consistent with existing implementations if the precision is 1. As far as I can see the spec. would result in a