Skip to content

Built-in solution for printing tables #307

Description

@slava110

Is your feature request related to a problem?

Currently, there's no easy solution to print tables in the console both in Lua and Micropython (AFAIK). And it's annoying sometimes. For example, if I simply want to print list of peripherals in lua console, it just prints variable address instead of value
To print values I need to install third-party library and use it which isn't always convenient.

Describe the solution you'd like

The perfect solution would be to print tables when converted to string, but it might not be possible with the lua and micropython you're using. So, I guess, some kind of library or pre-defined utility toString function might do the job (even though slightly inconvenient).

Describe alternatives you've considered

Downloading third-party libraries or writing a bunch of code simply to print table into console.

Additional context

Image

Same suggestion has been declined in OC2:R because it's "not meant to be user-friendly" (c). So I'm interested if this project aims to be user-friendly

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions