[Haskell-cafe] Constructors on left and right hand sides of equation
PATRICK BROWNE
patrick.browne at dit.ie
Thu Sep 18 07:56:39 UTC 2014
On 18 September 2014 03:08, Richard A. O'Keefe <ok at cs.otago.ac.nz> wrote:
> The question question is "what do you MEAN by 'are they distinct'"?
>
> They are two distinct references to a single binding occurrence
> of an identifier. In Eq1, the first occurrence is in a pattern,
> and the second is in an expression.
>
Thanks for the feedback.
If both occurrences of (NewGlass i) in Eq1 reference the same object in
memory then I would consider them to be the same.
If they reference different objects I would consider them to be equal but
not the same.
Is (Fill m i ) in Eq 2 a type constructor? Is it treated the same as the
data constructor (NewGlass i)?
--
This email originated from DIT. If you received this email in error, please
delete it from your system. Please note that if you are not the named
addressee, disclosing, copying, distributing or taking any action based on
the contents of this email or attachments is prohibited. www.dit.ie
Is ó ITBÁC a tháinig an ríomhphost seo. Má fuair tú an ríomhphost seo trí
earráid, scrios de do chóras é le do thoil. Tabhair ar aird, mura tú an
seolaí ainmnithe, go bhfuil dianchosc ar aon nochtadh, aon chóipeáil, aon
dáileadh nó ar aon ghníomh a dhéanfar bunaithe ar an ábhar atá sa
ríomhphost nó sna hiatáin seo. www.dit.ie
Tá ITBÁC ag aistriú go Gráinseach Ghormáin – DIT is on the move to
Grangegorman <http://www.dit.ie/grangegorman>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140918/e6bea5f6/attachment.html>
More information about the Haskell-Cafe
mailing list