Skip to content

StaticExpression and Expression should be mixed on same Implementation #9

@master-q

Description

@master-q

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions