4 ms·
Your explanation makes sense. It would complicate the compiler in this regard. It's funny, how many different answers I got. I guess, all those reasons combine
by zubspace 7y ago
Your explanation makes sense. It would complicate the compiler in this regard.
It's funny, how many different answers I got. I guess, all those reasons combined justify :=
- Complicates compiler
- Prevents Typos
- Works well with err (also because of partial declarations)
- Variables can be shadowed inside a closure
- masklinn 7y ago> Your explanation makes sense. It would complicate the compiler in this regard. The compiler part's easy, it's the meatpiler which gets into an odd funk when implicit declarations don't do the expected thing (which will eventually happen). Not having implicit declarations is much simpler and more straightforward for everyone involved. I used to find implicit declarations NBD, but I've slowly soured on them (starting with CoffeeScript: I found its declaration inference decisions absolutely awful and that started me really thinking about implicit declarations, see http://lucumr.pocoo.org/2011/12/22/implicit-scoping-in-coffeescript/ http://lucumr.pocoo.org/2011/12/22/implicit-scoping-in-coffe... for more on the subject, or https://donatstudios.com/CoffeeScript-Madness https://donatstudios.com/CoffeeScript-Madness for a more brutal take).