alexandria icon indicating copy to clipboard operation
alexandria copied to clipboard

feat: Add macros for printing structs, arrays, and spans

Open Jonatan-Chaverri opened this issue 1 year ago • 5 comments

Feature Request

Describe the Feature Request

It would be very useful to have a macro for easily printing structs, arrays, or spans. For structs, this could be a derive macro that implements the Display trait. For collections, an inline macro could be used to print the values comma-separated.

Just opening this for discussion, want to hear your opinion.

Describe Preferred Solution

Create two macros: one for printing structs and another for printing arrays and spans. For structs, a derive macro is preferred, while for collections, an inline macro should suffice.

Additional Context

Feature was originally requested in this issue https://github.com/KaizeNodeLabs/starkiro/issues/202 but I think it can help other developers as well.

If the feature request is approved, would you be willing to submit a PR?

  • [ x ] Yes
  • [ ] No

Jonatan-Chaverri avatar Mar 29 '25 21:03 Jonatan-Chaverri

Hello, we may add this request to our development pipeline. However, if you want you can also submit a PR for this feature. We are happy to review & merge 👍

ermvrs avatar Apr 01 '25 12:04 ermvrs

Ok sure, I will work on it! Thanks

Jonatan-Chaverri avatar Apr 02 '25 22:04 Jonatan-Chaverri

Hello @Jonatan-Chaverri are there any updates about this feature?

ermvrs avatar May 01 '25 10:05 ermvrs

@ermvrs I created a PR as an update. I'm still working on it, will try to finish by next week.

Jonatan-Chaverri avatar May 03 '25 00:05 Jonatan-Chaverri

@ermvrs PR ready for review. Please check it when have some time. Thanks.

Jonatan-Chaverri avatar May 07 '25 21:05 Jonatan-Chaverri

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍 Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Jun 07 '25 08:06 github-actions[bot]