<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        ...then again, you cannot "down-shift" all characters... hmpf ...<div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 16.10.2019 09:35:01 schrieb Marcel Taeumel <marcel.taeumel@hpi.de>:</p><div style="font-family:Arial,Helvetica,sans-serif"><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        
                                        
                                            
                                        
                                        
                                        > <span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Please, don't introduce "Shifted" too</span><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">It has been already there for a while: #withFirstCharacterDown*shifted*. Also, we can shift a menu to show different items. There is the [shift] key to write upper-case letters. And so on. It's already there. Nothing new. :-)</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">> If you feel strongly this belongs in trunk (I don't), then may we at least call it #withFirstCharacterCapitalized?</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px">No strong feelings. :-) I do not understand your argument "nomenclature vs. implementation". Looking at the definition of "Capitalization" in Wikipedia, I think that Squeak's implementation of #capitalized is not correct, which renders your argument of using #capitalized instead of adding #</span></span><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">withFirstCharacterUpshifted void.</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">At the level of words, #capitalized has no counterpart that works in terms of "words" and "letters". A "character" can also be a number.</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">At the level of strings, #withFirstCharacterDownshifted has no counterpart that works in terms of "sub-strings" and "characters".</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Hmm... does this make more sense now? Anyway, I also think that the word "downshifted" is strange, but so is "upshifted". :-)</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Best,</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Marcel</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div class="mb_sig"></div>
                                        
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 16.10.2019 04:48:35 schrieb Chris Muller <ma.chris.m@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div dir="ltr">On Tue, Oct 15, 2019 at 1:42 AM Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de" target="_blank">marcel.taeumel@hpi.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex;min-width: 500px"><div><div id="m_1076361284439293155m_751975228702276740gmail-m_-7577815228819622516__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: rgb(0,0,0)">
                                        Hmm... given that I always remember #<span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">withFirstCharacterDownshifted but not #capitalized ... I think there might be something missing here. :-)</span><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">Yes, if we would add #</span><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">withFirstCharacterUpshifted, it should just call #capitalized directly.</span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">Well, looking at Wikipedia (</span><a href="https://en.wikipedia.org/wiki/Capitalization" target="_blank"><span style="font-size: 10pt;font-family: Arial,Helvetica,sans-serif">https://en.wikipedia.org/wiki/Capitalization</span></a><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size: 13px">), I wonder why </span></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size: 13px"><br></span></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size: 13px">'hello world' capitalized</span></span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">does not yield</span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">'Hello World'</span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">but only</span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">'Hello world'</span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">... because it says "...</span><span style="font-size: 10pt">writing a word with its first </span><a href="https://en.wikipedia.org/wiki/Letter_(alphabet)" title="Letter (alphabet)" style="font-size: 10pt" target="_blank">letter</a><span style="font-size: 10pt"> as a capital letter...</span><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">" so 'hello world' has two words in it.</span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">So, #</span><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px">withFirstCharacterDownshifted refers to the string full of characters. #capitalized actually should refer to words.</span></div></div></div></blockquote><div><br></div><div>I was talking about nomenclature, not implementation.</div><div> <br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex;min-width: 500px"><div><div id="m_1076361284439293155m_751975228702276740gmail-m_-7577815228819622516__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: rgb(0,0,0)"><div><span style="font-family: Arial,Helvetica,sans-serif;font-size: 13px"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size: 13px">Anyway, I think that #withFirstCharacterUpshifted cannot hurt. :-)</span></span></div></div></div></blockquote><div><br></div><div>It hurts by overloading the API with an unnecessary synonym.  We already have the words "upperCase" and "lowerCase" and "capitalized".  Please, don't introduce "Shifted" too, it's not mentioned anywhere on that Wikipedia page, and not even Google has a definition for "Upshifted", only "Upshift" -- and it refers to the automotive context I mentioned.</div><div><br></div><div>If you feel strongly this belongs in trunk (I don't), then may we at least call it #withFirstCharacterCapitalized?</div><div><br></div><div>Best,</div><div>  Chris</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex;min-width: 500px"><div><div id="m_1076361284439293155m_751975228702276740gmail-m_-7577815228819622516__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: rgb(0,0,0)"><div><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size: 13px"><br></span></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size: 13px">+0.5</span></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size: 13px"><br></span></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size: 13px">Best,</span></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size: 13px">Marcel</span></span></div><div></div><blockquote type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color:rgb(170,170,170);margin-top:10px">Am 14.10.2019 22:37:25 schrieb Chris Muller <<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>>:</p><div style="font-family:Arial,Helvetica,sans-serif">
<div dir="ltr">-1.<div><br></div><div>Using the Method Finder, enter</div><div><br></div><div>     'hello'.  'Hello'</div><div><br></div><div>to see we already have #capitalized to do that.</div><div><br></div><div>Before introducing new API, always research existing nomenclature's.  Uncapitalization is not a common use-case, but if you want to introduce it into Squeak, I'd suggest #uncapitalized instead of two new methods named "Upshifted" and "Downshifted".  Those words describe the "procedure for obtaining a capital letter from a keyboard" (except "Downshifted," which only describes a car with a manual transmission, ready to burn rubber  :)  ).  By contrast, the #capitalized API describes the nature of the object itself.</div><div><br></div><div>Best,</div><div>  Chris</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 13, 2019 at 3:34 PM <<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</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;min-width: 500px">A new version of Collections was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Collections-ct.858.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Collections-ct.858.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-ct.858<br>
Author: ct<br>
Time: 13 October 2019, 10:33:55.310932 pm<br>
UUID: 80a9daa4-d11d-554c-8530-f4d5a1a70c8f<br>
Ancestors: Collections-pre.857<br>
<br>
Adds #withFirstCharacterUpshifted analogously to #withFirstCharacterDownshifted<br>
<br>
=============== Diff against Collections-pre.857 ===============<br>
<br>
Item was changed:<br>
  ----- Method: String>>withFirstCharacterDownshifted (in category 'converting') -----<br>
  withFirstCharacterDownshifted<br>
-       "Return a copy with the first letter downShifted"<br>
<br>
        | answer |<br>
-       <br>
        self ifEmpty: [^ self copy].<br>
        answer := self copy.<br>
        answer at: 1 put: (answer at: 1) asLowercase.<br>
+       ^ answer!<br>
-       ^ answer. !<br>
<br>
Item was added:<br>
+ ----- Method: String>>withFirstCharacterUpshifted (in category 'converting') -----<br>
+ withFirstCharacterUpshifted<br>
+ <br>
+       | answer |<br>
+       self ifEmpty: [^ self copy].<br>
+       answer := self copy.<br>
+       answer at: 1 put: (answer at: 1) asUppercase.<br>
+       ^ answer!<br>
<br>
Item was changed:<br>
  ----- Method: Symbol>>withFirstCharacterDownshifted (in category 'converting') -----<br>
  withFirstCharacterDownshifted<br>
+       "Answer an object like the receiver but with first character downshifted if necessary"<br>
-       "Answer an object like the receiver but with first character downshifted if necesary"<br>
<br>
+       ^self asString withFirstCharacterDownshifted asSymbol!<br>
-       ^self asString withFirstCharacterDownshifted asSymbol.!<br>
<br>
Item was added:<br>
+ ----- Method: Symbol>>withFirstCharacterUpshifted (in category 'converting') -----<br>
+ withFirstCharacterUpshifted<br>
+       "Answer an object like the receiver but with first character upshifted if necessary"<br>
+ <br>
+       ^self asString withFirstCharacterUpshifted asSymbol!<br>
<br>
<br>
</blockquote></div>
</div></blockquote>
                                        </div></div></blockquote></div></div>
</div></blockquote></div></div></blockquote>
                                        </div></body>