Skip to content

Warning for executing stateful functions in non ANF positions #467

@radrow

Description

@radrow

There should be warning for doing this

stateful function f() = 
  put(state+1)
  state
stateful function g() =
  put(state*2)
  state


put(10)
f() + g()  // what is the state now? 

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions