<div dir="ltr">Yep I understand that.<div><br></div><div>Since beRow returns the recipient (myLayout beRow = myLayout), the second example is functional but not recommended (hidden intent).</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 10, 2023 at 9:10 AM Jon Hylands <<a href="mailto:jhylands@gmail.com">jhylands@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 10 Mar 2023 at 01:52, Alexandre Rousseau <<a href="mailto:yalexr@gmail.com" target="_blank">yalexr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><br></div><div>So,</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">lay1 beRow :: borderWidth: 1 :: borderColor: (Color black) .</blockquote><div><br></div><div>can also be expressed as</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">lay1 beRow; borderWidth: 1; borderColor: (Color black).</blockquote><div>since all messages are intended for the original receiver (lay1).</div></div></div></blockquote><div><br></div><div>No, that is not the same at all.</div><div><br></div><div>Your first example is equivalent to this:</div><div><br></div><div>((lay1 beRow) borderWidth: 1) borderColor: Color black</div><div><br></div><div>The second example would be:</div><div><br></div><div>lay1</div><div>    beRow;</div><div>    borderWidth: 1;</div><div>    borderColor: Color black</div><div><br></div><div>in the first example #borderWidth: is sent to the result of the #beRow method, whereas in the second it is sent to lay1. If #beRow is a method that has side effects and returns self then they are functionally equivalent, but if it returns a new object then they are not the same at all.</div><div><br></div><div>- Jon</div><div><br></div></div></div>
</blockquote></div>