Skip to content

Add a feature that enables string output for debugging purposes #853

Open
@konnov

Description

@konnov

As noted by @cason, it would be nice to have string manipulation to produce debugging output:

Example: to debug a model I have a "lastAction" string field keeping track of... what its name says. I would really like to be able to do something like that:

state.with("lastAction", "addPeer ".concat(peer.ID))

where peer.ID in this case is already a string (to be honest, is a type alias to a string).

In general we would like to avoid hard-to-verify string manipulation expressions. Perhaps, we could introduce a special IO type that allows for string output and recognition, while not allowing it to be mixed in the specification itself.

This is also related to #779.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions