You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What should "take arg bat" do? We usually include the type in the arg, so visually I'd expect b string, but for consistency with a I'd expect b. Not sure what is right
Cc/ @AndreasArvidsson here's another case where arg and item might differ
Activity
josharian commentedon Aug 25, 2023
I think probably
pour arg air
should generate:Although it could generate:
pour arg bat
probably should generate:but there's an argument for
pokey commentedon Aug 25, 2023
What should "take arg bat" do? We usually include the type in the arg, so visually I'd expect
b string
, but for consistency witha
I'd expectb
. Not sure what is rightCc/ @AndreasArvidsson here's another case where arg and item might differ
pokey commentedon Aug 25, 2023
But I'd say whichever way we go, "pour arg bat" and "take arg bat" should be consistent
josharian commentedon Aug 26, 2023
After further reflection, I think I want this...
"take arg bat"
(Did I do that range correctly?)
"pour arg bat"
(How do I write selections in the scope test format?)
"drink arg bat"
The rationale here is that it is easier to chuck an unwanted
string
than it is to bring one.The user could just as easily also want:
But as there's no clearly more likely outcome, it seems to be better to optimize to make it easier to fix what Cursorless chose, if it chose wrong.
"chuck arg bat"
Can't imagine any realistic alternatives.
"take arg air"
The alternative is this:
which seems kind of crazy.
"pour arg air"
The rationale is as above: Is easier to chuck a type than bring one.
"drink arg air"
Uncontroversial, I think.
"chuck arg air"
Again, uncontroversial, I think.
I'm not sure how consistent or inconsistent that is though.
At least now we have a lot of data points on the table to discuss. Looking forward to it.
AndreasArvidsson commentedon Aug 26, 2023
I don't see a good reason why the type should be omitted from the argument scope.