Re: "safer" Euphoria
- Posted by Irv <irv at ELLIJAY.COM> Jul 13, 1998
- 525 views
Cuny, David wrote: > > [Catching bugs vs. Saving Data] > <snip> > I think that the development environment is *different* from the end > user environment, and the interpreter should recognize the difference. > It's fine to stop a program and tell the programmer that they forgot to > initialize a variable - but certainly not acceptable for an end > application. > It is different. The end user flails away at the keyboard and mouse, entering text where numbers should go, and dividing monthly pay by Fred. They also occasionally delete files at random "to clean up their disk", and then complain that your program "won't work". These actions are rather hard to predict. > [Failsafe Routines] The problem with any "failsafe" routine is: what exactly should it do? Stop and save the changes? Roll back to a previous state? Assume some data that isn't there? There's no way for anyone but the programmer to know - based on the exact state at the time of the error. So we're stuck with writing input validation routines anyway. Irv