Category talk:MUMPS

From Rosetta Code

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)

The J language examples often go further, (thanks); and provide full explanations of some of their examples in talk pages as an extra. It may not be necessary, but they sometimes do it (and I often read them - not being a J programmer but interested in how they get things done). --Paddy3118 06:10, 26 May 2010 (UTC)