<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 5/1/2020 5:56 AM, Erik Stel via Cuis-dev wrote:
<blockquote
cite="mid:AC45D8BF-1221-457A-888C-137BB89CAA94@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hi <span style="font-family: -webkit-system-font,"Helvetica
Neue",Helvetica,sans-serif;" class="">Luciano,</span>
<div class=""><br class="">
</div>
<div class=""><font class="" face="-webkit-system-font, Helvetica
Neue, Helvetica, sans-serif">I agree, we can’t live (happily
;-) without Character, Symbol, Number and String literals. It
would be very annoying to create instances without the
existing literal declarations.</font></div>
<div class=""><font class="" face="-webkit-system-font, Helvetica
Neue, Helvetica, sans-serif"><br class="">
</font></div>
<div class=""><font class="" face="-webkit-system-font, Helvetica
Neue, Helvetica, sans-serif">I think we have the same feeling
regarding {}, did not use it, but it makes code more readable
in some places. Although I tended to use lazy initialised
(class or instance) variables to create the instances I
needed. I have the feeling it is more clear I am constructing
an Array in that way. Since I do see code in which Arrays are
constructed using {} which actually are more like Sets, namely
to describe the set of possible/allowed values. It is then
used to validate inclusion of an element within this …Array?!
But the fact that an element has an index is not relevant.
Maybe…just maybe…{} should have been used to create a Set
instead of an Array. Seems more similar to the mathematical
notation we used at school ;-).</font></div>
<div class=""><font class="" face="-webkit-system-font, Helvetica
Neue, Helvetica, sans-serif"><br class="">
</font></div>
<div class=""><font class="" face="-webkit-system-font, Helvetica
Neue, Helvetica, sans-serif">Thx for your insight!</font></div>
<div class=""><font class="" face="-webkit-system-font, Helvetica
Neue, Helvetica, sans-serif">Erik</font></div>
<div class=""><font class="" face="-webkit-system-font, Helvetica
Neue, Helvetica, sans-serif"><br class="">
</font></div>
</blockquote>
<br>
As I said in another message, `{ 1. 3. 5. 7. 11. 13} asSet` looks
like a good alternative to me.<br>
<br>
<blockquote
cite="mid:AC45D8BF-1221-457A-888C-137BB89CAA94@gmail.com"
type="cite">
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">On 1 May 2020, at 10:19, <a
moz-do-not-send="true"
href="mailto:cuis-dev-request@lists.cuis.st" class="">cuis-dev-request@lists.cuis.st</a>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div dir="auto" class="">I haven’t used backticks,
because in the cases that I could have used them the
performance gain was negligible, and I’m constantly
refactoring and changing everything so I was afraid
that they might introduce weird bugs (because old
instances could linger inside compiled methods).</div>
</div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">Maybe I could live without #(), I
don’t use it that much. I’m not sure it is important for
the base system, tho. Same goes for $. However, symbol
literals are important, and I can’t imagine coding
without literals for numbers and strings, it is possible
but must be very annoying.</div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">I like {} and use it often. It is
relatively new, I used to code without it, and at the
beginning I didn’t like it but ended up getting used to
it. It does make code more readable.</div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">On Fri, 1 May 2020 at 2:46 PM,
Erik Stel via Cuis-dev <<a moz-do-not-send="true"
href="mailto:cuis-dev@lists.cuis.st" class="">cuis-dev@lists.cuis.st</a>>
wrote:<br class="">
</div>
<div class="">
<div class="gmail_quote" style="font-family: Helvetica;
font-size: 12px; font-style: normal; font-weight:
normal; letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; text-decoration: none;">
<blockquote class="gmail_quote" style="margin: 0px 0px
0px 0.8ex; border-left: 1px solid rgb(204, 204,
204); padding-left: 1ex;">
<div style="word-wrap: break-word;" class="">Maybe I
wasn’t clear (because it was part of another
topic, see below) or tread on a sensitive subject,
but I’m still eager to hear the reasoning for
having backticks (which are not in Squeak nor
Pharo) from the simplicity point of view. Would
anyone care to elaborate?
<div class=""><br class="">
</div>
<div class="">I am also eager to know what others
think about language constructs such as #(), {}
and `` for daily usage. And I mean this in the
sense ‘Do you use these often? Could you live
without them?’. I do understand how they can be
used and what their meaning is ;-). And I can
also lookup their current use in the default
image, but that does not answer how you/we use
them in our (application) code.</div>
<div class=""><br class="">
</div>
<div class="">Kind regards,</div>
<div class="">Erik<br class="">
</div>
</div>
</blockquote>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
</blockquote>
</div>
<br class="">
</div>
</blockquote>
<br>
Cheers,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</body>
</html>