Dereference into an indexer #8019
Unanswered
Ai-N3rd
asked this question in
Language Ideas
Replies: 1 comment
-
Pointer is much less used in C# comparing to C++. Pointer to And your syntax |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem:
Currently, when accessing an indexer on a pointer in C#, developers have to use explicit dereferencing syntax, which can be cumbersome and less intuitive. For instance:
Proposal:
To improve readability and reduce cognitive load for developers working with pointers and indexers, I propose introducing a new syntactic sugar for pointer dereferencing with indexers.
New Syntax:
Beta Was this translation helpful? Give feedback.
All reactions