-
Notifications
You must be signed in to change notification settings - Fork 29
[RFC] Array Slice Access #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There has been some discussion of this proposal by email. Do you plan to post that somehow, or do you want us to repeat it all here? |
Tucker Taft One alternative approach would be to improve the support for user-defined Stephen Baird I think Tuck makes a good point about considering other approaches including
Tucker Taft I would certainly agree the aspect should be on the (named) access type, at least as an initial approach. If you Stephen Baird Tuck wrote:
Stephen Baird I wrote: Tucker Taft My favorite would be to use the 3-index-value approach always, as it seems simplest and most flexible. I don't Fabien Chouteau On Thu, Jan 12, 2023 at 7:59 PM Tucker Taft [email protected] wrote:
Sounds like a lot of work, and I am not sure "hiding" the access in private type is always a good thing. Tucker Taft
Fair enough. As I indicated in another response, I would then recommend using a "three-index" fat pointer in all Take care, Fabien Chouteau
Does it have to be enabled by an aspect? Tucker Taft Yes, you would need to enable it with an aspect on the access-to-array type. It could cause major upheaval, with Stephen Baird On Fri, Jan 20, 2023 at 5:30 AM Tucker Taft [email protected] wrote:
Agreed. One part of this upheaval would be the compile-time rejection of previously-legal representation Raphael Amiard WRT. Tucker's point, I think extending user defined indexing is a great idea personally, but to be frank I'm not sure Tucker Taft What I was suggesting is that you could define your own "pointer-to-slice" type which would support indexing, just
I was going the other direction, of extending user-defined indexing to a user-defined pointer-to-slice type. |
Thanks, Fabien, for bringing across the comments from that long email chain. |
Small typo fix.
No description provided.