<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div id="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;">
<p>Hi all, <span style="font-size: 12pt;">please take a look at the following changeset. It eliminates a lot of duplication for printing a string with article, for example:</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div 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;">
<p><span style="font-size: 12pt;"></span></p>
<div>| title |</div>
<div>title := self class name.</div>
<div><span style="font-size: 12pt;">aStream</span><br>
</div>
<div><span style="white-space:pre"></span>nextPutAll: (title first isVowel ifTrue: ['an '] ifFalse: ['a ']);</div>
<div><span style="white-space:pre"></span>nextPutAll: title.</div>
<p></p>
</div>
</blockquote>
<div 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 id="Signature">
<div id="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="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div class="_rp_T4" id="Item.MessagePartBody">
<div class="_rp_U4 ms-font-weight-regular ms-font-color-neutralDark rpHighlightAllClass rpHighlightBodyClass" id="Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont">
<div><font size="3" color="black"><span style="font-size:12pt"><a href="http://www.hpi.de/" target="_blank" rel="noopener noreferrer" id="LPNoLP"><font size="2"><span id="LPlnk909538"><font color="#757B80"></font></span></font></a></span></font></div>
</font></div>
</div>
</font></div>
</div>
</div>
</div>
<div class="_rp_T4" id="Item.MessagePartBody"><br>
</div>
<div class="_rp_T4" id="Item.MessagePartBody">With this changeset, the example is rewritten much simpler as:</div>
<div class="_rp_T4" id="Item.MessagePartBody"><br>
</div>
</div>
</div>
</div>
</div>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div 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>
<div 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="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div class="_rp_T4" id="Item.MessagePartBody"><span>aStream nextPutAll: self class name asString withArticle.</span><br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<font face="Calibri, Arial, Helvetica, sans-serif"><br>
</font>
<div 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>
<div 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="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>
<div><font face="Calibri, Arial, Helvetica, sans-serif">(Additionally, this unification provides a possible hook, should we ever want to increase multilingual support. :))</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif"><br>
</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif">I tried to find as many occurrences as possible (6), but even if we don't replace them all, I would like to propose to put the following three methods into Trunk (which are part of the changeset, of course):</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif"><br>
</font></div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><font face="Calibri, Arial, Helvetica, sans-serif">String >> article</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif">
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; white-space: pre;"></span>^ self first isVowel</div>
</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif">
<div><span style="white-space:pre"></span>ifTrue: ['an']</div>
</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif">
<div><span style="white-space:pre"></span>ifFalse: ['a']</div>
</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif"><br>
</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif">String >> </font><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">withArticle</span></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif">
<div><span style="white-space:pre"></span>^ self article , ' ' , self capitalized</div>
</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif">
<div><br>
</div>
</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif">
<div>
<div>Symbol >> withArticle</div>
</div>
</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif">
<div>
<div><span style="white-space:pre"></span>^ self article , self capitalized</div>
</div>
</font></div>
</blockquote>
<div><font face="Calibri, Arial, Helvetica, sans-serif">
<div></div>
</font></div>
<div><font face="Calibri, Arial, Helvetica, sans-serif">
<div><br>
</div>
<div>Theoretically, we could also put them into the '*System-Support' category. Not sure about this.</div>
<div>Looking forward to your opinions :-)</div>
<div><br>
</div>
<div>Best,</div>
<div>Christoph</div>
</font></div>
</div>
</body>
</html>