Deprecate count
NightRa opened this issue · 3 comments
NightRa commented
The count function is a mistake, it should not have been exported and it's name is misleading.
Better deprecate it and afterwards unexport it.
paf31 commented
Why is it a mistake?
NightRa commented
It's an implementation detail I mistakenly renamed and then exposed.
Also, these have been issues here complaining about the naming; a function named count is expected to count the occurences in the whole String, not only it's prefix.
It just continued to sit in the back of my mind as an embarrassing mistake I made.
paf31 commented
Ok, sounds good.