Skip to content
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

Align op_get of map and array #1332

Open
myfreess opened this issue Dec 17, 2024 · 1 comment
Open

Align op_get of map and array #1332

myfreess opened this issue Dec 17, 2024 · 1 comment

Comments

@myfreess
Copy link
Contributor

The current get and op_get of @hashmap.T[K, V] type both return a Option[V], but the methods of the same names of Array type return an Option[T] and a T respectively. Their behavior should be aligned.

@peter-jerry-ye
Copy link
Collaborator

This is for map pattern and cannot be changed.

@peter-jerry-ye peter-jerry-ye changed the title The @hashmap.T[K, V]::op_get(K) ->Option[V] method should not return a Option Align op_get of map and array Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants