Re: Javascript examples in draft not technically correct

Hi Brook,

How would you like to change the examples? There are some variable
declarations that aren't at the top of the enclosing method. While
that can be a bit confusing given JavaScript's variable scoping, it's
not really an error as far as I know.

/Bjorn

On Mon, Mar 28, 2011 at 3:13 AM, Brook Monroe <brook.monroe@gmail.com> wrote:
> To Whom It May Concern:
>
> The Javascript examples in 18 OCT 2010 draft of the Speech Input API
> specification appear to have been based on the idea that variables are block
> scoped in Javascript.  They are not.  Javascript is a function-scoped
> language like C.  While the script as supplied will work due to the leniency
> of the extant interpreters, the examples should be re-written to be correct.
>
> Best regards,
>
> J. Brook Monroe
> Travel Solutions Custom Solution Architect, NCR
>
>
>



-- 
Bjorn Bringert
Google UK Limited, Registered Office: Belgrave House, 76 Buckingham
Palace Road, London, SW1W 9TQ
Registered in England Number: 3977902

Received on Friday, 1 April 2011 12:29:08 UTC