Skip to content

Request for Tips on Handling Measurements and Units Listing, and Transforming Between Strings and Objects without Reflection #63

@CPMOliveira

Description

@CPMOliveira

Hello,

I’ve recently started using the EngineeringUnits library and have been impressed with its capabilities. However, I’m facing a couple of challenges and would appreciate some guidance:

  1. Listing Available Measurements and Units: Is there a recommended approach or built-in method for easily listing all the available measurements and their corresponding units? I would like to create a comprehensive list for a user interface, but I’m not sure of the most efficient way to achieve this.
  2. Transforming Between Strings and Objects Without Using Reflection: I need to transform strings (representing measurement names or unit symbols) into the corresponding objects in EngineeringUnits, but I’d like to avoid using reflection for performance reasons. Do you have any suggestions or best practices for achieving this transformation efficiently?

Any advice or examples would be highly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions