Skip to content

Avoid creating structs #3

@emilaxelsson

Description

@emilaxelsson

In many cases it's possible to compile Feldspar tuples into a set of variables instead of creating a struct. For example:

f a b = c+d
  where
    (c,d) = (a==b) ? ((a,2), (b,3))

There's no need to create a struct in this case.

See this proposal.

See also the issue for feldspar-language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions