A more friendly assert for incorrect mut value#13479
A more friendly assert for incorrect mut value#13479grapho wants to merge 1 commit intoemberjs:masterfrom
Conversation
I believe the term "binding" makes more sense to most users as opposed to "path", because there are helpers which _do_ accept "paths as strings"
|
@grapho I think "binding" might be a little jargon'y here. What did you find confusing about "path"? |
|
@wycats path is not a bad term either, however i guess the format of the path is the potentially confusing part. I encountered a user that was attempting to do I could update the assert to mentions that string values are not valid... but there was a concern by @locks that stating that could also be misleading as you cant really enumerate "all " the possible things that are not passable to the assert does not explicity test for a string value.. it test if the value is a stream, so not sure the best way to go here.. if at all. |
|
There are several places in the code base where these are described as quoteless path. You can see all instances here. It doesn't seem like a strong name because it describes them as the absence of something rather than describing the thing itself. LISP seems to use binding to describe these variable bits. It would be great if we could come up with a name that specifically identifies these dynamic bits. |
|
I tend to like "path" - as it describes the object |
|
☔ The latest upstream changes (presumably #14163) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Oh wow.. i forgot I actually made this a PR and not just an issue :p If we are all lukewarm about this change i have no issue closing. I was considering newer users whom had questions on #slack not understanding what it meant |
|
Thanks for the discussion everyone, I'm closing as current art seems adequate. |
I believe the term "binding" makes more sense to most users as opposed to "path", because there are helpers which do accept "paths as strings"
This comes from a user I talked to, whom encountered the assert after doing
{{mut 'isActive'}}by mistake and had trouble deciphering the meaning of the current assert error.@wycats as the original author, do you have any thoughts/review for this?