[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Undefined variables returning nil
- From: William Sumner <prestonsumner@...>
- Date: Tue, 19 Mar 2013 18:33:12 -0600
On Mar 19, 2013, at 6:24 PM, William Ahern <william@25thandClement.com> wrote:
> You keep asserting that this is unsafe behavior. Please elaborate.
An incorrect variable name bug executes silently, which can propagate undetected through a program. It can lead to other problems, such as unintentional array "holes", incorrect results from the length operator, and time spent searching for the origin of the problem in large codebases. Because user-implemented solutions have been created to address the problem, as well as static analyzers, it would seem preferable to make the language have the safe behavior by default. I consider it unsafe because it's a detectable bug that the language does not report to the user.
Preston
- References:
- Undefined variables returning nil, William Sumner
- Re: Undefined variables returning nil, Petite Abeille
- Re: Undefined variables returning nil, William Sumner
- Re: Undefined variables returning nil, Kaj Eijlers
- Re: Undefined variables returning nil, William Sumner
- Re: Undefined variables returning nil, Petite Abeille
- Re: Undefined variables returning nil, William Sumner
- Re: Undefined variables returning nil, Geoff Leyland
- Re: Undefined variables returning nil, William Sumner
- Re: Undefined variables returning nil, William Ahern