<div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)">Yes, I do that sometimes, but in general I avoid creating extra classes, and in my math project I make an extra effort to avoid creating new classes for objects that are neither algebraic structures nor morphisms or elements of algebraic structures (since usually those things are software engineering artifacts and not actual mathematical things). Also, it doesn’t simplify the use of the multiple returned values if I still have to send messages to this new object to obtain them and assign them to variables. I like the json objects that they have in Bee, tho, they can be very handy sometimes.</span><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 21 Jun 2023 at 15:59 Nicolás Papagna Maldonado <<a href="mailto:nicolas.papagna@gmail.com">nicolas.papagna@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">Interesting!<div><br></div><div>For multiple-value returns, how about an object holding these values?</div><div>I know this might introduce many of these tiny objects, but I'm okay with that!</div><div><br></div><div>IIRC Leandro implemented a feature in Bee where you can return anonymous objects.</div><div>Something along the lines of {foo: 1, bar:2}. Then you can do `result foo`, etc.</div><div><br></div><div>I'm more on keeping the syntax simple camp, but that is an interesting idea too.</div><div><br></div><div>Cheers,</div><div>Nico PM</div></div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 21, 2023 at 10:54 AM Mariano Montone via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st" target="_blank">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">El 21/6/23 a las 10:44, Luciano Notarfrancesco via Cuis-dev escribió:<br>
> Interesting, thanks for sharing!<br>
> Actually I think it’s the same thing I did<br>
<br>
Yes, I think you've implemented destructuring rather than multiple-value <br>
return, as your solution can be applied to other things than method call <br>
returns.<br>
<br>
This is something nice to have, makes code more readable.<br>
<br>
<br>
Mariano<br>
<br>
<br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a 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><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><br>Nicolás Papagna</div>
</blockquote></div></div>