<br><br><div class="gmail_quote">On Tue, Nov 25, 2008 at 5:46 AM, Randal L. Schwartz <span dir="ltr">&lt;<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;&gt;&gt;&gt;&gt; &quot;Filip&quot; == Filip Malczak &lt;<a href="mailto:filet00@gmail.com">filet00@gmail.com</a>&gt; writes:<br>
<br>
Filip&gt; You can always make subclass of Interval for example OpenedInterval , add<br>
Filip&gt; two variables: left and right.Make new methods:<br>
<div class="Ih2E3d">OpenedInterval&gt; from: aNumber to: aNumber left: aBoolean<br>
OpenedInterval&gt; from: aNumber to: aNumber right: aBoolean<br>
OpenedInterval&gt; from: aNumber to: aNumber left: aBoolean right: aBoolean<br>
<br>
</div>You&#39;re exposing implementation there. &nbsp;I suggest:<br>
<br>
beOpenLeft<br>
beClosedLeft<br>
isOpenLeft<br>
isClosedLeft<br>
<br>
and the corresponding &quot;right&quot; methods, rather than an explicit boolean.<br>
More flexibility later.<br>
</blockquote></div><br><br>Or how about<br><br>a := 1 to: ∞.<br><br>If you add the Unicode symbol for infinity as a global variable, it seems to work okay. You just need to choose a font which has that symbol. Alternatively, you could be boring and use a name like &quot;Infinity&quot;.<br>
<br>Now, the implementation would be most interesting :-). You could go a bit further and make infinity a valid number to use in code.<br><br>Gulik.<br><br><br clear="all"><br>-- <br><a href="http://people.squeakfoundation.org/person/mikevdg">http://people.squeakfoundation.org/person/mikevdg</a><br>
<a href="http://gulik.pbwiki.com/">http://gulik.pbwiki.com/</a><br>