[self-interest] Questions about implied self

Jim Wise jwise at draga.com
Thu Feb 17 19:43:16 UTC 2011


Casey Ransberger <casey.obrien.r at gmail.com> writes:

> I'm having some trouble wanting the feature. When I look at the
> former, I don't "see" the grouping in my minds eye. Maybe I'll get
> used to it, but it sure seems easy to get wrong. Maybe the feature
> wants some syntax highlighting or something:)

It helps to remember that a very common case of chaining method calls
like this is in `assigining' the result of a comparison or other
calculation to a slot (strictly, calling the method in the assignment
slot):

       a: x max: 5

(which is implicitly

       self a: x max: 5

instead of

       a: (x max: 5)

or

       self a: (x max: 5)


-- 
				Jim Wise
				jwise at draga.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/x-ygp-stripped
Size: 40 bytes
Desc: not available
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20110217/42717a24/attachment.bin>


More information about the Self-interest mailing list