Skip to content

Mutable references #140

Open
Open
@yannbolliger

Description

@yannbolliger

For now, the frontend allows only local mutation and no mutable borrowing for safety reasons. It would however, provide great value to also allow mutable references. This should be possible by targetting the imperative phase of Stainless.

Example in Scala: https://github.com/jad-hamza/stainless/blob/72c0052255878c440e0a1d00260f4ebf04ba5860/frontends/benchmarks/imperative/valid/ReturnWithMutation.scala

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureSomething needs to be addedimperativeFeature or bug related to imperative features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions