<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ryan Joseph via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mi., 16. Dez. 2020, 18:38:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just for fun I wanted to see what people thought about a potential "pair" type added to the compiler. Dictionaries have proven themselves to be a fundamental type we use often and they are appearing as built-in syntax in many languages, especially scripting languages that allow dynamic object construction.<br>
<br>
So my idea was a potential "pair of ..." type added to the compiler which accepts pair literals in the format of "key: value". The underlying structure would be a record like "_Pair".<br>
<br>
The primary reason for this is so we can construct dictionaries easier but they could also be used for other reasons, although I'm not sure that would be sensible. <br>
<br>
Seems like low hanging fruit to me but I'm curious what other people think.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This can simply be done using existing language constructs, no need to introduce anything new.</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>