Skip to content

Feature Request: Labelset should return something else than an empty string if getlabel is called with a non-existent label #463

Description

@balintlaczko

Is your feature request related to a problem? Please describe the problem.

Currently, when I use getlabel with a non-existent identifier, I get an empty string (symbol) as a response, which is not very convenient in Max.

Describe the solution you'd like to see.

In Max, it is atypical to have an empty atom (symbol/string/list). It would be more convenient to just not get anything in return (just the "getlabel"). So, currently, we get a list: ["getlabel", ""]. If it was just ["getlabel"], it would already be much more convenient to handle. But I'm open to other solutions too.

Describe alternatives you've considered

My current hack:

Image

It works, but it would be nicer to get something easier to handle.

Additional context

This came up in the setpoint implementation for fluid.jit.plotter. Since the message can imply a new or existing identifier, I have to check if it exists in the dataset/labelset. I guess a separate contains message/method could also work, but it wouldn't be necessary if we could avoid outputting the empty symbol.

Activity

  1. tremblap commented on May 20, 2026

    @tremblap
    Member

    I had a discusson about a 'isPoing' method in the (slow) pipeline with @weefuzzy - we could do 'isLabel' or use 'contains' indeed, but he will have (very well informed) opinions...

  2. tremblap commented on May 20, 2026

    @tremblap
    Member

    His previous wisdom was: "IAC, if one were to add a message to the containers, I think it should be called contains and you'd probably want to call std::unorderd_map::count to see if a key exists"

  3. tremblap commented on May 24, 2026

    @tremblap
    Member

    flucoma/flucoma-core#344 is in progress.

  4. tremblap commented on Oct 7, 2026

    @tremblap
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions