List Commands Library for 50g
|
03-04-2018, 03:48 PM
Post: #264
|
|||
|
|||
RE: List Commands Library for 50g
(03-04-2018 09:01 AM)pier4r Wrote: But then one has to be careful checking the input. I'm in for precise commands that are freed from checking the input. Unless doing the input check is easy. Checking argument counts and types is much easier in SysRPL than in UserRPL (IMHO). There are standardized structures for this, and all well-written SysRPL programs can and should use them. Function overloading is common throughout the command set of the 48-50 systems, so following that practice makes sense to me wherever possible. What John is suggesting seems reasonable, and could be done with no impact to existing UserRPL programs. While there's a distinct difference in the source code of the library between command labels vs. aliases, changing the "official" names of the commands and keeping the old ones as aliases wouldn't require anyone to alter their own programs. An interesting side effect would be that any programs saved on your calculator when you replace the library with the newer version would automatically have instances of LSPLT/LRSPL changed to SPLIT/RSPLT the next time you edit or recall them to the stack. Source code saved as text would keep the old names, of course, but those commands would now be aliases for the newly-named versions. So at this point I don't really see much of a downside to changing the names in this manner. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)