buckle2000
buckle2000
I think I fixed it. I really don't have time for this now.
Wow, this pull request is really old. @leafo is there any change you will merge this?
Cound be useful.
Well, I mean the compiler should not exit immediately but give some error messasge instead.
OK, this specific case might work, but consider this one: https://gist.github.com/buckle2000/bb2999b31706b70f767d53a8a7230661 and this one: ```moonscript for l=1,2 -- pass ```
Very true, but this is somewhat unsatisfying since there is an additional statement. `local _ = pass`
I prefer to use `_` as a placeholder. I just want to say that if _ can be overwritten, moonscript might not have a safe scoping system.
Some people prefer to use _ for utilities like this one: https://github.com/Yonaba/Moses
I can think of 3 solutions. 1. Change `_` into a long name like `_moonscript_` 2. Ban the usage of writing a single value on one line 3. Ignore these...
Here is an example script for SVG manipulation: ```js var ns = 'http://www.w3.org/2000/svg' var div = document.getElementById('drawing') var svg = document.createElementNS(ns, 'svg') svg.setAttributeNS(null, 'width', '100%') svg.setAttributeNS(null, 'height', '100%') div.appendChild(svg) var...