<div dir="auto">Actually the line</div><div dir="auto"><br></div><div dir="auto"><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> lay1 beRow :: </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">borderWidth:</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">1</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> :: </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">borderColor:</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> (</span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">Color</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> black) .</span><br></div><div dir="auto"><br></div><div dir="auto">looks sort of sarcastic to me, if code can be sarcastic. Because :: is normally used to avoid writing parenthesis, and it has unnecessary parenthesis around Color black. And also the first :: is not needed. In standard Smalltalk-80 syntax that line is equivalente to</div><div dir="auto"><br></div><div dir="auto"><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> (lay1 beRow </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">borderWidth:</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">1) </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">borderColor:</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">Color</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> black.</span><br></div><div dir="auto"><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"><br></span></div><div dir="auto"><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">which is also not very easy to read. </span><span style="font-family:monospace;font-size:small">IMO it would be better written as</span></div><div style="background-color:rgba(0,0,0,0);border-color:rgb(255,255,255)" dir="auto"><font size="2" style="font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"><span style="font-family:monospace"><br></span></font></div><div style="background-color:rgba(0,0,0,0);border-color:rgb(255,255,255)" dir="auto"><font size="2" style="font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"><span style="font-family:monospace"><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> lay1 beRow; </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">borderWidth:</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">1;</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">borderColor:</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">Color</span><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"> black.</span><br></span></font></div><div style="background-color:rgba(0,0,0,0);border-color:rgb(255,255,255)" dir="auto"><font size="2" style="font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"><span style="font-family:monospace"><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"><br></span></span></font></div><div style="background-color:rgba(0,0,0,0);border-color:rgb(255,255,255)" dir="auto"><font size="2" style="font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)"><span style="font-family:monospace"><span style="font-size:13.6px;font-family:monospace;border-color:rgb(36,41,47);color:rgb(36,41,47)">because otherwise you’re assuming that beRow, borderWidth and borderColor: return the receiver (not a crazy assumption, but unnecessary). All a matter of taste and style anyway.</span></span></font></div><div style="background-color:rgba(0,0,0,0);border-color:rgb(255,255,255)" dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 9 Mar 2023 at 23:08 Alexandre Rousseau via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">For example. per <a href="https://github.com/nmingotti/The-Cuis-CookBook/wiki/Introduction-to-morphs-Layout" target="_blank">https://github.com/nmingotti/The-Cuis-CookBook/wiki/Introduction-to-morphs-Layout</a> , I see this code:<br><div><br></div><div><font face="monospace" style="font-family:monospace;color:rgb(0,0,0)"><span style="font-size:13.6px;font-family:monospace;color:rgb(36,41,47)">lay1 beRow :: </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;color:rgb(36,41,47)">borderWidth:</span><span style="font-size:13.6px;font-family:monospace;color:rgb(36,41,47)"> </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;color:rgb(36,41,47)">1</span><span style="font-size:13.6px;font-family:monospace;color:rgb(36,41,47)"> :: </span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;color:rgb(36,41,47)">borderColor:</span><span style="font-size:13.6px;font-family:monospace;color:rgb(36,41,47)"> (</span><span style="font-size:13.6px;box-sizing:border-box;font-family:monospace;color:rgb(36,41,47)">Color</span><span style="font-size:13.6px;font-family:monospace;color:rgb(36,41,47)"> black) .<br><br></span></font></div><div>I am assuming it is the same as ";" but cannot find documentation to this effect.</div></div><div dir="ltr"><div><br></div></div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div></div>