Skip to content

Operator overloading [] [Feature Request] #23177

@LukyGuyLucky

Description

@LukyGuyLucky

Describe the feature

V support simple operator overloading like +/-/*/\ ,but no index operator overloading [] which is quite useful and much convenient when a UDT type has elements.
Would this feature be considered to add in the language?

Use Case

It is preferrable to write iList[2]:=33 other than iList.at(2)=33

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

0.4.8

Environment details (OS name and version, etc.)

Win 10,64bit

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature/Enhancement RequestThis issue is made to request a feature or an enhancement to an existing one.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions