List Representation Discrepancy in M's Object Model<span style="color:#a31515"> <p>Fibonacci[1,1,2]<br/><br/>and<br/><span style="color:#a31515"><br/>Fibonacci { Head =&gt; 1, Tail =&gt; { Head =&gt; 1, Tail =&gt; { Head =&gt; 2, Tail =&gt; {} } } }<br/><br/>have different representations in the MGraph Object Model.<br/><br/>You can verify that by comparing the &quot;List Example&quot; and &quot;Another List Example&quot; graphs @ <a href="http://sixpairs.com/mgom.aspx">http://sixpairs.com/mgom.aspx</a><br/><br/>The first one has brands while the second one doesn't.<br/><br/>The second one looks more natural to me as the last tail is an empty collection without a brand (and the intermediate tails don't have brands either).<br/><br/>What do you think? Should the two representations be the same or do their differences add more semantic value?<br/></span></p> </span>© 2009 Microsoft Corporation. All rights reserved.Sat, 11 Jul 2009 08:08:03 Z1c041b31-5fa6-4f74-a43d-914d42c4a275http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/1c041b31-5fa6-4f74-a43d-914d42c4a275#1c041b31-5fa6-4f74-a43d-914d42c4a275http://social.msdn.microsoft.com/Forums/en-US/oslo/thread/1c041b31-5fa6-4f74-a43d-914d42c4a275#1c041b31-5fa6-4f74-a43d-914d42c4a275Ceyhun Ciperhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ceyhun%20CiperList Representation Discrepancy in M's Object Model<span style="color:#a31515"> <p>Fibonacci[1,1,2]<br/><br/>and<br/><span style="color:#a31515"><br/>Fibonacci { Head =&gt; 1, Tail =&gt; { Head =&gt; 1, Tail =&gt; { Head =&gt; 2, Tail =&gt; {} } } }<br/><br/>have different representations in the MGraph Object Model.<br/><br/>You can verify that by comparing the &quot;List Example&quot; and &quot;Another List Example&quot; graphs @ <a href="http://sixpairs.com/mgom.aspx">http://sixpairs.com/mgom.aspx</a><br/><br/>The first one has brands while the second one doesn't.<br/><br/>The second one looks more natural to me as the last tail is an empty collection without a brand (and the intermediate tails don't have brands either).<br/><br/>What do you think? Should the two representations be the same or do their differences add more semantic value?<br/></span></p> </span>Wed, 24 Jun 2009 12:02:32 Z2009-07-05T14:39:05Zhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/1c041b31-5fa6-4f74-a43d-914d42c4a275#960cc588-214c-4cb3-88f7-df72adbdce1fhttp://social.msdn.microsoft.com/Forums/en-US/oslo/thread/1c041b31-5fa6-4f74-a43d-914d42c4a275#960cc588-214c-4cb3-88f7-df72adbdce1fClemens Szyperskihttp://social.msdn.microsoft.com/Profile/en-US/?user=Clemens%20SzyperskiList Representation Discrepancy in M's Object ModelI agree that the second form should be what the first form yields. What it does instead looks like a bug.Mon, 06 Jul 2009 19:41:48 Z2009-07-06T19:41:48Z