14 ms·
I can't think of a more usable productive language from the 60s that still survives. It's got a lower barrier of entry than C, and it's miles better than BASIC.
by quink 15y ago
I can't think of a more usable productive language from the 60s that still survives. It's got a lower barrier of entry than C, and it's miles better than BASIC. It's more friendly than BASIC in fact, while still being faster, and is way more accessible than FORTRAN or COBOL.
You want to do FizzBuzz? I present the shortest FizzBuzz in almost any language other than APL or Perl:
f i=1:1:100 w ! w:'(i#3) "Fizz" w:'(i#5) "Buzz" w:'$x i
Or, in pseudocode:
for i=1:1:100
print "\n"
if not (i%3) print "Fizz"
if not (i%5) print "Buzz"
if not x_pos_of_cursor print i
Ah, yes, and don't ever use dot notation as above if you plan on wanting comments on your line, i.e.
for
. blah
; some comment here
. foo
foo here won't execute. Instead this works:
for
. blah
. ; some comment here
. foo
Tripped me up the first time I dealt with that... however, these days with Caché ObjectScript (the most popular MUMPS dialect) it'd be written:
for {
blah
// some comment here
foo
}