[SOLVED] DSRN (dog slow roman numerals)
|
06-16-2014, 04:24 AM
Post: #45
|
|||
|
|||
RE: DSRN (dog slow roman numerals)
(06-16-2014 03:40 AM)DavidM Wrote: The algorithm in DM1/TK3 doesn't handle 0 or negative values properly. So as I'm in the mood of late to force myself to use the list-processing commands more, I thought I'd fix that. In the process I ran into yet another DOLIST quirk. Yes, we've also changed that already in newRPL. Makes no sense to get nothing! The empty list is the correct answer, no doubt. As much as we wanted 100% compatibility, there's things we consider design problems and we are not willing to replicate that. Want another one? The number of lists is an optional argument, and the system is supposed to correctly guess, under some obscure circumstances only, how many arguments it needs. The AUR gives an example of the command << DUP >>, which I tested and... didn't work (Bad Argument count). So it's optional in some cases but it's either not clear when, or it doesn't work as designed (or at least as explained in the AUR). So we opted to make the parameter not optional. Hopefully our implementation of list processing commands will be more "likable" than the original. Claudio |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)