On Wed, 29 Jun 2022 20:22:10 -0700, Charles Mills wrote:

>    ...
>"99 Bottles of Beer" is more concise in C++ than in Python, and MUCH more 
>concise in BASIC. Does that make BASIC a better language? 
>https://en.wikipedia.org/wiki/99_Bottles_of_Beer 
>
The BASIC is 219 characters.  I converted it slavishly to Rexx.  32 characters 
shorter -- 187:

do Bottle = 100 TO 1 by -1
 say Bottle "bottles of beer on the wall," Bottle "bottles of beer"
 say "Take one down and pass it around," Bottle-1 "bottles of beer on the wall"
end Bottle

Does that make Rexx a worse language?

(We don't need no steenkin' "||"!)

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to