Re: A question about certain language features
- Posted by kbochert at ix.netcom.com Feb 15, 2002
- 584 views
-------Phoenix-Boundary-07081998- Hi David Cuny, you wrote on 2/15/02 12:32:11 AM: > >But in this case, it's not a matter of cosmetics. It actually *does* >matter >how (and where) something is written. By splitting the declaration from >the >assignment: > > integer foo > ... > foo = 123 -- default value > >you increase the chances that the code will encounter an uninitialized >variable. And when that happens, the Euphoria interpreter stops, and >anything >the user was doing is permanantly lost. > An argument could be made that uninitialized variables ought to be prohibited. integer foo ^ 'Attempt to create variable without value' Might make the interpreter faster because it wouldn't have to do a runtime check for uninitialized variables. Karl -------Phoenix-Boundary-07081998---