HP Forums

Full Version: GolfScript versus RPL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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.

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

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

Example:

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.