Closed gnecula closed 9 years ago
Made it so that in ruby, the first parameter is optional (not keyworded). So you can do:
spy(key: val, key2: val2)
or spy('point_name', key: val)
I thought this was a little nicer than having to do spy(spy_point_name: 'point_name', key: val)
and forces the point name to be at the start of the argument list which is good anyway.
That is indeed nicer, and it happens to work the same in python too.
George.
On Mon, Oct 19, 2015 at 1:08 PM, Erik notifications@github.com wrote:
Made it so that in ruby, the first parameter is optional (not keyworded). So you can do: spy(key: val, key2: val2) or spy('point_name', key: val)
I thought this was a little nicer than having to do spy(spy_point_name: 'point_name', key: val) and forces the point name to be at the start of the argument list which is good anyway.
— Reply to this email directly or view it on GitHub https://github.com/necula01/bond/issues/13#issuecomment-149331711.
Not all spy point use agents. If you do not have an agent, the spy point name plays only a documentation role. Sometimes I just want to spy "x". I would like to be able to write:
instead of
Possible implementation