-
Notifications
You must be signed in to change notification settings - Fork 0
Consider renaming function Count #7
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
Comments
Salut @marco-m 👋🏻 Sorry for the delay in my answer, I was not around computers 🌴 I fully agree with you. The Now, for alternative names, I think it's going to be tricky indeed, but it's worth giving a try 🤞🏻 First and foremost, I must say I'm against Here are some alternatives I could think of, let me know what you think, and please feel free to propose others:
Let me know what you think 👀 |
Ah, naming is indeed difficult! :-) I was not aware that Otherwise, I tried to uniformize a bit the description of the 3 functions in multi.go. Remember that I don't really know what I am describing (although I am familiar with classic formal languages and parsing, I am not familiar with parser combinators :-) ). I can offer the following:
If these two make sense, then following your suggestion for
I have to say that I am a bit uncertain, because for |
So, it took me some time, but I've been thinking hard about this, and let my brain do the rest in the background. What I ended coming up with was the following:
|
|
Salut Théo,
consider:
Although I am not a native English speaker, I think that the name
Count
in this case is misleading. I read it as "count the number of occurrences of something and give me back the result", that is, as a verb in the imperative tense.According to the documentation, I would call it something like
ApplyN()
.The text was updated successfully, but these errors were encountered: