<!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 8/12/2023 10:22 AM, Luciano Notarfrancesco via Cuis-dev wrote:
<blockquote
cite="mid:CAL5GDyq=Soo922t7VZD-Yg1=UmM2K3Mhj+r1GW6YrRR9KRXqbg@mail.gmail.com"
type="cite">
<div dir="auto">I don’t know what an ETuple is, is is a kind of
literal? I create tuples (a kind of array) with the message #,.
For example, (1,2,3) sends ‘, 2’ to 1 and returns a tuple with 1
and 2, and then this tuple receives ‘, 3’ and returns a tuple
with 1, 2 and 3. It’s not the most efficient way of creating
tuples (it creates some temporary garbage), and they are not
literals, but it makes very readable code. <br>
</div>
</blockquote>
<br>
And you can turn any expression into a literal by enclosing it in
backticks. These two generate the same CompiledMethod:<br>
<br>
a<br>
^`the answer to life the universe and everything`<br>
<br>
b<br>
^42<br>
<br>
The only difference is that the first method will take quite a while
to compile.<br>
<br>
Cheers,<br>
<br>
<blockquote
cite="mid:CAL5GDyq=Soo922t7VZD-Yg1=UmM2K3Mhj+r1GW6YrRR9KRXqbg@mail.gmail.com"
type="cite">
<div dir="auto"><br>
</div>
<div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, 12 Aug 2023 at 20:10
rabbit via Cuis-dev <<a moz-do-not-send="true"
href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</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;">
<div>
<p>I think it will need to be such as read-only Array and
ByteArray construction, to differentiate from other
selectors. So it will need to be #<. I'm fine with it
being a read-only ETuple, so that it conforms to the
convention of constructing read-ony objects :: #() . and
#[]. I could sent #makeWriteableObject to. If a Tuple
detects Computable, it could make itself Writeable, or
when computations occur prior to replacing the
computable with the result of computation. And so on and
so forth. This would look as</p>
<blockquote>
<p>#<#<1 !! 2 !! 3> !!
#thisIsAConstructedWithNestingETuple></p>
</blockquote>
<p>Best,<br>
••• rabbit ❤️🔥🐰</p>
</div>
<div>
<p><br>
</p>
<div>On 8/12/23 09:03, rabbit via Cuis-dev wrote:<br>
</div>
<blockquote type="cite">
<p>Good morning. I wish to add <> brackets to
create an ETuple. How may I accomplish this? Such as:</p>
<blockquote>
<p><<1 !! 2 !! 3> !!
#thisIsAConstructedWithNestingETuple></p>
</blockquote>
<p>Results in:</p>
<blockquote>
<p>anETuple (2 elements :: {anETuple (3 elements :: {1
!! 2 !! 3}) !!
#thisIsAConstructedWithNestingETuple})</p>
</blockquote>
<p>Gratefully,<br>
••• rabbit ❤️🔥🐰</p>
</blockquote>
<pre style="font-family: monospace;" cols="72">--
••• rabbit ❤️🔥🐰</pre>
</div>
-- <br>
Cuis-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a moz-do-not-send="true"
href="https://lists.cuis.st/mailman/listinfo/cuis-dev"
rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>