HP Forums
GolfScript versus RPL - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: GolfScript versus RPL (/thread-178577.html)

GolfScript versus RPL - Allen - 02-09-2011

I've been reading up on a fairly new programming language called Golf Script Since it's stack based, it reads very much like RPL.

Curious if anyone here has experience in this language??

For example, the coercion behaviors from the tutorial are nearly identical to the way the HP48/49/50 treat similar inputs.

1[2]+ -> [1 2]
1'2'+ -> "12"
1{2}+ -> {1 2}

And the first example in the tutorial, is notably post-fix


1 1+

Has 3 items, "1", "1", "+". The ones push the number 1 onto the
stack. The + is a built-in block defined to take the top two stack
items, add them together, and push the result on the stack.