Login  Register

Use of -> in Pharo Code

Posted by bprior on Nov 30, 2016; 2:36am
URL: https://forum.world.st/Use-of-in-Pharo-Code-tp4925229.html

I have been away from smalltalk coding for a while. On returning to the fold, I often see the use of a right arrow in code. Is this something new?

Today in a Teapot app example, I saw,

Teapot on GET: '/welcome' -> 'Hello World!'; start.

What is the arrow for?