Skip to content

Unrestricted Recursion (tmFix) in TemplateMonad #377

Open
@fakusb

Description

@fakusb

Have there been thought on integrating an monadic operation to the TemplateMonad to allow unguarded recursion?

I have seen a few monadic programs defined in the monad requiring fuel to allow non-structural recursion. It seems to me that it should be possible to have a fixpoint operator tmFix : forall X, (X -> X) -> X -> TM X that removes the need for fuel. Or is there a theoretical/practical argument against having this?

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