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

Add context to the help message for myself to tell the user what myself refers to in context #123

Open
jzkelter opened this issue Aug 16, 2024 · 1 comment

Comments

@jzkelter
Copy link

myself is confusing for many users given that it seems the same asself but it isn't. If we could include in the tooltip for myself when a user mouses over it what it refers to in this context, that would be helpful. There are at least two cases:

  1. The asking agents are in the same scope. E.g., ask turtles [ask one-of other turtles-here [set color [color] of myself. In this case we should be able to say something like "myself refers to the each turtle in the ask turtles on line X"
  2. The asking agents are in a different procedure. E.g., in the go procedure there is code like ask turtles [spread-color] and then the spread-color procedure has ask one-of other turtles-here [set color [color] of myself. In that case, because spread-color could be called in multiple places, we won't be able to tell who exactly the asking agents are, but we could say something generic like "myself refers to whichever agent is running the spread-color procedure".
@CIVITAS-John
Copy link
Contributor

A visual hint would be even better (ofc, together with the tooltip).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants