Whiley / RFCs

Request for Comment (RFC) proposals for substantial changes to the Whiley language.
3 stars 2 forks source link

Improved Syntax for Framing #86

Open DavePearce opened 3 years ago

DavePearce commented 3 years ago

(see also #82)

I need to update this RFC: https://github.com/Whiley/RFCs/blob/master/text/0067-old-values.md

I think we need to separate out two things:

  1. The value of a variable in the pre-state
  2. The value of the heap in the pre-state

Currently, the proposal allows an arbitrary "old expression" form '*e' with an eye to eventually allowing'e'`. I think there are some ambiguities here though. What is the meaning of these forms?

This is not making sense. We want two expression forms:

Now, we can disambiguate the last case above as either ##v or #*v.

What about method calls? Do we need a syntax like m#() or similar?

DavePearce commented 3 years ago

At this stage, it seems like going with old(e) for now makes the most sense.