Skip to content

Feedback about InteractionOuput #306

@relu91

Description

@relu91

I am reporting the feedback from @sebastiankb about the interaction output. Here's his comment:

Personally, I love the beauty of this one liner:

const jsonValue = await thing.readProperty("temperature");

With the new interface, this will no longer be straightforward and gets more complex:

const jsonValue = (await (await thing.readProperty("temperature")).value());

Or you have to go for a two liner for better readability:

const response = await thing.readProperty("temperature");
const jsonValue = await response.value();

I see the advantage of the new approach but I'm wondering if there is a kind of hybrid approach possible?

I think he has a point and we may need to refine a little bit the interface towards a simpler solution. I know that we discussed in depth about this interface, therefore let's try to refine it and don't start the whole discussion again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions