fxbox / deprecated-taxonomy

This repository has moved.
https://github.com/fxbox/foxbox/
Mozilla Public License 2.0
0 stars 9 forks source link

setter return value examples #90

Open dhylands opened 8 years ago

dhylands commented 8 years ago

An examples where the setter returns a value, would be when you issue a take_snapshot command.

This will create an image, and perhaps a getter. If it creates a getter, it would be nice to know the id of the getter which was just created (the id that corresponds to the snapshot I just took).

I think that this will be important for retrieving historical data. i.e. we record someplace that we took a picture at this time with this ID so that it can be retrieved later.

Yoric commented 8 years ago

I have been thinking about setters that return values and it's actually relatively complicated. Once we have landed Decentralized Taxonomy, I believe that this can be added, but it will make the definition of Features more complicated for adapter developers, unless we restrict ourselves to, say, returning a free-form String.

dhylands commented 8 years ago

A free form string can contain arbitrary JSON, so it still pretty much allows for arbitrary returns.