Skip to content

Better handling for pure functions #1

Description

@markovejnovic

Currently, all our haskell returns IO T, which means that functions which could be considered pure, are not. It would be quite valuable if we added support for this, as that further improves ergonomics.

There are three mechanisms I see:

  • All const fn functions could be treated as implicitly pure (I believe).
  • It could be a cool idea to integrate with Creusot.
  • We could, of course, add our own #[function(pure)] annotation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions