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

ASSIGN: Possible ambiguity in allowing assignment via INDEX or NAME #3

Open
whitesnowx opened this issue Apr 5, 2024 · 0 comments
Open

Comments

@whitesnowx
Copy link
Owner

whitesnowx commented Apr 5, 2024

Creates ambiguity in assigning a contact:

  • E.g Confusion can be when (index: 15 name: 14) and (index: 14 name: 15)
steps
add n/15 p/98765432 e/[email protected] a/John street, block 123, #01-01
assign 15 t/CHINGU

image.png

Possible solutions suggestion:

  • Maybe can restrict the names to cannot be purely numbers so 15 will not be a valid name
  • Can limit the usage of assign to only use index
  • Can note that if value passed in is numerical, will be considered as index in the userguide
  • Inform the user that there is a contact with the name that is also a index
@whitesnowx whitesnowx changed the title Possible ambiguity in allowing assignment via INDEX or NAME ASSIGN: Possible ambiguity in allowing assignment via INDEX or NAME Apr 5, 2024
@whitesnowx whitesnowx changed the title ASSIGN: Possible ambiguity in allowing assignment via INDEX or NAME ASSIGN: Possible ambiguity in allowing assignment via INDEX or NAME Apr 5, 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

1 participant