atspkg icon indicating copy to clipboard operation
atspkg copied to clipboard

StaticExpression and Expression should be mixed on same Implementation

Open master-q opened this issue 6 years ago • 0 comments

Implementation is defined as following:

data Implementation a = Implement { pos            :: a
-- snip--
                                  , _iExpression   :: Either (StaticExpression a) (Expression a) -- ^ Expression (or static expression) holding the function body.
                                  }

But I found we can mix StaticExpression and Expression. See following:

https://github.com/githwxi/ATS-Postiats/blob/fa34c1617360a24dac56d0002484f3d9868e8bb7/doc/EXAMPLE/MISC/intsqrt_prf.dats#L75

master-q avatar Jan 30 '19 05:01 master-q