lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Fri, Oct 2, 2015 at 1:01 PM, Jonathan Goble <> wrote:
> Rather than get overly complicated, why not just print a one-line warning
> when the interpreter is first started, under the version number and
> copyright info and before the first prompt? Quick, simple, and no parsing
> needed. Something like "Warning: local declarations will not persist beyond
> the line on which they are entered." would be sufficient.

Because that wouldn't actually solve the problem of inexperienced
users overlooking the issue.

Humans are tuned to associate cause and effect. You do something,
something else happens, you pay attention, you learn.

Humans are also tuned to ignore repetitive stimuli. When you see a
message pop up in the same place every time you start the program, the
information in it stops being perceived as salient.

By putting the message on every startup, you're just producing a
warning that's going to get ignored. The message informing the user of
the problem is separated in both time and space from the cause of the
problem (worse, it precedes it, and humans are REALLY bad at seeing
correlations when they're time-reversed).

It also runs the risk of being perceived as patronizing -- experienced
users aren't going to want to be reminded every time they start up the
interpreter; that's just more noise on the terminal.

/s/ Adam