--- Begin Message ---Hi Bruce, in hsort again ;-) This was your code:Teapot on GET: '/welcome' -> 'Hello World!'; start.Imagine it this way with brackets: Teapot on GET: ('/welcome' -> 'Hello World!'); start. This is the same as writing:Teapot on GET: ( Associtation key: '/welcome' value: 'Hello World!') ; start.Shorter: (x -> y) = (Association key: x value: y) The -> is the short version of the Association constructor. I hope this makes things a little clearer. Sebastian
--- End Message ---
Re: [Pharo-users] Use of -> in Pharo Code
Sebastian Heidbrink via Pharo-users Wed, 30 Nov 2016 16:22:17 -0800
- [Pharo-users] Use of -> in Pharo Co... Bruce Prior
- Re: [Pharo-users] Use of -> in... Sebastian Heidbrink via Pharo-users
- Re: [Pharo-users] Use of -> in... Martin McClure
- Re: [Pharo-users] Use of ->... p...@highoctane.be
- Re: [Pharo-users] Use of ->... David T. Lewis
- Re: [Pharo-users] Use of -> in... stepharo
- Re: [Pharo-users] Use of -> in... Bruce Prior
- Re: [Pharo-users] Use of ->... Sebastian Heidbrink via Pharo-users
- Re: [Pharo-users] Use of ->... Ben Coman
- [Pharo-users] Use of -> in Pha... Bruce Prior