Talk:Abbreviations, simple

From Rosetta Code

Case of output[edit]

Surely if I preprocess the command table to "Add ALTer ..." then this is the same task as Abbreviations, easy. Now if you require the output to be case specific, well then at least there is some point.--Nigel Galloway (talk) 12:59, 4 December 2017 (UTC)

If you choose to pre-process the table, I'm fine with it.   However, that would make it harder to compare your computer program example to others who don't opt to do the pre-processing and create   another   abbreviation table.   (I'm assuming that you don't/won't destroy the original abbreviation table in the process).   And the output (as per the illustration/example)   is   case specific   (all uppercase except for   *error*,   which is used as "an error notification flag").   And yes, if you pre-process the table in the manner you stated, then it's pretty much the same task as the Rosetta Code task   Abbreviations, easy.   But, the objective was to use the table as is   (this wasn't stated, but I didn't want to hamper some people's programming algorithms)   without creating another abbreviation table.   It never occurred to me that someone would want to pre-process the abbreviation table and create another abbreviation table.   This is why I created three tasks for three of the various types of an abbreviation table.   Creating another abbreviation table can be problematic when the abbreviation table is very large.   Another pitfall is that the code could be in a subroutine (and the subroutine would be invoked for each option specified), and there maybe is no access/ability to obtaining more memory (virtual storage), etc.   Gerard Schildberger (talk) 13:33, 4 December 2017 (UTC)