Post Reply 
[SOLVED] DSRN (dog slow roman numerals)
06-16-2014, 03:42 PM
Post: #50
RE: DSRN (dog slow roman numerals)
(06-16-2014 05:07 AM)Thomas Klemm Wrote:  Not sure about that. It has indeed to do with what we pass to DOLIST. But then just returning nothing instead of an empty list is a surprize to me as well.

I guess I'm just getting the sense that DOLIST is better suited for situations where there's more independence amongst the list members.

In this particular case, the relationships of the list members are highly dependent on each other. Processing doesn't really need to address each and every character position; once the final string is known, processing can (and should) stop. Order and inclusion have direct/major significance to the final outcome, so any aspect of the list processing that adds complexity to those areas decreases its usefulness.

Conversely, consider a situation where there's much greater independence: renaming all of the objects in a directory. A pseudo-code version might look like this:

Code:
Get List of Objects
IF list isn't empty, THEN
  Get/Make List of renaming data
  Provide renaming executable
  DOLIST

In that case, DOLIST would be very useful to simplify the code. That type of scenario seems much more applicable to me.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: DSRN (dog slow roman numerals) - HP67 - 06-11-2014, 07:06 PM
RE: DSRN (dog slow roman numerals) - HP67 - 06-12-2014, 11:44 AM
RE: DSRN (dog slow roman numerals) - HP67 - 06-12-2014, 04:49 PM
RE: DSRN (dog slow roman numerals) - HP67 - 06-15-2014, 12:02 PM
RE: DSRN (dog slow roman numerals) - HP67 - 06-16-2014, 06:09 AM
RE: DSRN (dog slow roman numerals) - HP67 - 06-12-2014, 05:46 PM
RE: DSRN (dog slow roman numerals) - DavidM - 06-16-2014 03:42 PM



User(s) browsing this thread: 1 Guest(s)