Re: Dos Rescue for Phix
- Posted by petelomax Sep 21, 2017
- 1434 views
The right way to do things is ... work without modifying the original software.
In recent years I have become more and more philosophically opposed to that idea. While Phix has exhibited some technical issues with overrides, more fundamentally the idea that a component that works when standalone should continue to work when included as part of a larger system ultimately leads to the corollary: if it does not work standalone then it should not suddenly work just because there is an include dos_rescue.ew (or any other "clever tricks") somewhere earlier on.
Rather than being "obviously easier", the idea that "code does precisely what it says", and not having to doubt or double-check each and every line of code, should really win, and be far more desirable.
Obviously you can deliberately design code to be completely flexible, typically by invoking an override-able routine-id, as opposed to pretending to invoke a standard builtin.
Pete