Category talk:MUMPS

From Rosetta Code
Revision as of 05:05, 26 May 2010 by rosettacode>Stormneedle (Created page with '<p>I'm making the assumption that as a pedagogical site the examples should not be obfuscated. For example, from the http://rosettacode.org/wiki/A%2BB#MUMPS page, I would at work…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

I'm making the assumption that as a pedagogical site the examples should not be obfuscated. For example, from the http://rosettacode.org/wiki/A%2BB#MUMPS page, I would at work use:

R:20 Q:$T S W " ",$P(S," ")+$P(S," ",2) ;Wait 20 seconds for input, quit if nothing was input, write the numbers' sum

instead of the more legible

READ S
WRITE " ",$PIECE(S," ")+$PIECE(S," ",2)

Yes, I didn't do input checking on the example posted - it complicates the example, somewhat needlessly. If I should, I can go back and modify the examples. --Stormneedle 05:05, 26 May 2010 (UTC)