<div dir="ltr">In type section of the Gentle Introduction to Haskell <a href="http://www.cs.sfu.ca/CC/SW/Haskell/hugs/tutorial-1.4-html/moretypes.html">http://www.cs.sfu.ca/CC/SW/Haskell/hugs/tutorial-1.4-html/moretypes.html</a> there is this example:<br>
<br clear="all"><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><tt><br>
data Point = Pt {pointx, pointy :: Float}</tt></blockquote><div> </div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><tt></tt><tt>
abs (Pt {pointx = x, pointy = y}) = sqrt (x*x + y+y) </tt></blockquote><div><br>Why is it pointx=x and not x=pointx? <br></div><tt>
</tt><br>-- <br>Daryoush<br><br>Weblog: <a href="http://perlustration.blogspot.com/">http://perlustration.blogspot.com/</a><br>
</div>