forked from joejulian/gio
op: rename StackOp/Push/Pop to StateOp/Save/Load
The semantics were relaxed in a previous commit; this change renames to operations accordingly. API change. Use gofmt to adjust your code accordingly: gofmt -r 'op.Push(a).Pop() -> op.Save(a).Load()' gofmt -r 'op.Push(a) -> op.Save(a)' gofmt -r 'v.Pop() -> v.Load()' gofmt -r 'op.StackOp -> op.StateOp' Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+4
-4
@@ -51,13 +51,13 @@ For example:
|
||||
var stack op.StackOp
|
||||
var h1, h2 *Handler
|
||||
|
||||
stack := op.Push(ops)
|
||||
state := op.Save(ops)
|
||||
pointer.InputOp{Tag: h1}.Add(Ops)
|
||||
stack.Pop()
|
||||
state.Load()
|
||||
|
||||
stack = op.Push(ops)
|
||||
state = op.Save(ops)
|
||||
pointer.InputOp{Tag: h2}.Add(ops)
|
||||
stack.Pop()
|
||||
state.Load()
|
||||
|
||||
implies a tree of two inner nodes, each with one pointer handler.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user