<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>> <span style="font-size:12pt">"I want a two second delay" is perfectly valid :D</span></p>
<div><br>
</div>
<div>Maybe a native English speaker can correct me but afaik, in the grammar dependency tree of "two-second delay", "two-second" is not an independent noun but a pre-modifying phrase only. Shall we really start to support even more different types of words
 in an object-oriented language like Smalltalk? Imho, substantives and verbs are already enough. :-)</div>
<div><br>
</div>
<div>Otherwise, we might end up with overcomplicated expressions such as "2 seconds later do: [self flash. Wait for: 1.5 hour delay. self flash]". Exaggerating, of course. Though syntactically valid Smalltalk, definitively not "our" flavor of Smalltalk ...
 Reminds me rather of questionary constructs such as in RSpec (Ruby), for example.</div>
<div><br>
</div>
<div>And if this argument is way too complex, here is even a simpler one: According to Grammarly, "two second delay" is not even valid English. It needs to be "two-second delay" and I have never heard of mapping grammatical hyphens to separate messages in Smalltalk
 languages before. But would like to read some examples if there are any. :-)</div>
<div><br>
</div>
<div>Lbnl, I think it causes a lot of confusion and the need for coding styles if we create multiple selectors that do the same thing ... #ifNil:ifNotNil: vs #<span>ifNil:ifNotNilDo:/#<span>ifEmpty:ifNotEmpty: vs #<span>ifEmpty:ifNotEmptyDo: is already hard
 enough.</span></span></span></div>
<div><span><span><span><br>
</span></span></span></div>
<div><span><span><span>Best,</span></span></span></div>
<div><span><span><span>Christoph</span></span></span></div>
<p></p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Tobias Pape <Das.Linux@gmx.de><br>
<b>Gesendet:</b> Dienstag, 9. März 2021 14:26:05<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] Explorer / Inspector bug?</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
<br>
> On 9. Mar 2021, at 14:23, Thiede, Christoph <Christoph.Thiede@student.hpi.uni-potsdam.de> wrote:<br>
> <br>
> +1 for preventing "2 second" from answering "1 second", too confusing.<br>
<br>
yes<br>
<br>
<br>
> -1 for answering "2 seconds" for "2 second", that would be very ambiguous language and grammatically incorrect. :-)<br>
<br>
no.<br>
"I want a two second delay" is perfectly valid :D<br>
<br>
-t<br>
<br>
> <br>
> I think we should either go with an assertion (self assert: self = 1) or deprecate the singular selectors altogether.<br>
> <br>
> Best,<br>
> Christoph<br>
> Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Chris Muller <asqueaker@gmail.com><br>
> Gesendet: Dienstag, 9. März 2021 05:53:10<br>
> An: The general-purpose Squeak developers list<br>
> Betreff: Re: [squeak-dev] Explorer / Inspector bug?<br>
>  <br>
> My expectation would be that #second, #minute, #hour etc would<br>
> be syntactic sugar. And I certainly would not expect "5 second"<br>
> to mean one second duration.<br>
> <br>
> I note that we have several methods like this (second, minute, hour...)<br>
> and they have Brent Pinkney's (brp) initials since 2004. I don't know<br>
> if anyone depends on that existing behavior.<br>
> <br>
> That's correct.  Brent adopted those methods from my MaTimeObjects package (which is still installable from SqueakMap), although in my version it didn't even account for the sign, it was always just ^ 1 second, regardless of the receiver.  I agree they should
 just be synonyms.<br>
>  <br>
> Off topic, but there are other problems with these duration methods.<br>
> They are defined in Number but round the duration magnitudes to<br>
> whole seconds.<br>
> <br>
> Where do you see that?  I just tried "1.5 hours" and it worked...<br>
>  <br>
> And durations for 1 day or 1 week are undefinable<br>
> due to daylight savings transitions and occasional leap seconds.<br>
> <br>
> True, from a literal sense, but by that assessment we would have similar "problems" with ChronologyConstants' DaysInMonth, MicrosecondsInDay, OneDay, SecondsInDay, SecondsInHour, and SecondsInMinute.  All are useful, nonetheless.<br>
> <br>
>  - Chris<br>
<br>
<br>
<br>
</div>
</span></font>
</body>
</html>