Talk:General FizzBuzz: Difference between revisions
JS ES6 :: avoiding a newly introduced run-time error
(JS ES6 :: avoiding a newly introduced run-time error) |
(JS ES6 :: avoiding a newly introduced run-time error) |
||
Line 7:
However:
# '''SyntaxError: Can't create duplicate variable: 'defaultRules'''' on second run is (in all typical JS interpreter embeddings – browsers etc) the result of your removal of the outer module bracketing,
# You will find a few hundred JS examples which I have contributed here, using the Haskell name '''enumFromTo''' for ''integer enumerations'' – the semantics of which does differ from the Python pragmatic convention, but is very far from denotationally 'incorrect' as you suggest. (The Haskell tradition is rather rigorous about denotational semantics, and the use of 'through' vs 'to' in that English sense is more familiar to US than to UK (including Oxford and Glasgow) usage. See, for example, the Haskell documentation of enumFromTo: [[http://hackage.haskell.org/package/base-4.12.0.0/docs/Prelude.html#v:enumFromTo|enumFromTo]] [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 18:34, 8 November 2018 (UTC)
|