|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D - Re: why ; ?
Pragma:ECMAScript (JavaScript) allows this by making the terminating ';' optional, but you wind up with occasionally hard-to-find ambiguities as a result. You wind up falling back on using ';' everywhere as a habit just to avoid that problem. May 07 2008
bearophile Wrote:Pragma:ECMAScript (JavaScript) allows this by making the terminating ';' optional, but you wind up with occasionally hard-to-find ambiguities as a result. You wind up falling back on using ';' everywhere as a habit just to avoid that problem. May 07 2008
Pragma Wrote:// call both functions without a terminating ';' foo bar The parser would likely interpret this as a variable declaration for "bar of type foo". May 08 2008
|