Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Joshua Cranmer Newsgroups: comp.lang.java.programmer Subject: Re: java Date: Sun, 28 Aug 2011 12:49:22 -0500 Organization: A noiseless patient Spider Lines: 19 Message-ID: References: <1de867e5-8511-4c7f-8a68-46a68c79cbe1@k12g2000prl.googlegroups.com> <4e589fed$0$945$e4fe514c@dreader28.news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 28 Aug 2011 17:49:43 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="WpcHJSul77m+zlbR9GVqkA"; logging-data="13173"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YPaCBifKwAYKT4QF7vmGEih6/u/qC2ic=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: <4e589fed$0$945$e4fe514c@dreader28.news.xs4all.nl> Cancel-Lock: sha1:5wxYpf5mlOHG31m5zA8D2yoaGPA= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7437 On 8/27/2011 2:42 AM, jaap wrote: > Java has the nasty habit that he wants variables to be declared before > you can use them. Visual Basic is much smarter, she creates them on the > fly. Java programmers are afraid to make mistakes, that's why Java is > created this way. Visual Basic programmers are real hero's: they don't > make mistakes. So explicit scoping is a "nasty habit"? Implicit scoping of variables unarguably makes closures in Python a lot harder to use, and experience from other dynamic programming languages is that implicit scoping often causes as many problems as it solves. In addition, static typing also allows the compiler to report more errors at compile-time, which greatly reduces costs as opposed to suddenly discovering them at runtime. It's not that VB programmers don't make mistakes, it's that they're unaware of their mistakes. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth