+
Skip to content

Conversation

nkoppel
Copy link
Contributor

@nkoppel nkoppel commented Jan 21, 2023

This pr implements the Shape trait for arrays of length 1-6, resolving #377. It also reformats many of the macro definitions involved with macro definitions to make them, in my opinion, more readable. It doesn't implement the HasSameNumelAs trait for arrays, as this is to my knowledge impossible. Perhaps we could implement runtime-checked versions of reshape_to and flatten, which would also have the benefit of working on stable.

@coreylowman
Copy link
Owner

Agree about runtime-checked versions of reshape_to/flatten - perhaps do something like checked_reshape() -> Option<V>? Similar to things from std lib that have checked version

Copy link
Owner

@coreylowman coreylowman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice changes!

@coreylowman coreylowman merged commit 5303751 into coreylowman:main Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载