File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,17 +185,17 @@ infix operators are typically a bad idea.
185185 * They usually offer no insight into what they actually do. To the uninitiated,
186186 things like `(<*>)` and `(!?)` are meaningless.
187187
188- Now lets assume you have a really great infix operator, an operator that actually
188+ Now let's assume you have a really great infix operator, an operator that actually
189189represents its meaning in a very direct way, like `(<~)`. In this case, it is still
190190recommended that you do not add the infix operator.
191191
192- Okay, but lets say you want to do it anyway. One way to do it is to provide a
192+ Okay, but let's say you want to do it anyway. One way to do it is to provide a
193193recommended set of infix operators at the end of your library documentation.
194194Experienced users can go see if they like them and define them if they really want.
195195That way the API can be nice and human readable *and* encourage its users to write code
196196that is nice and human readable.
197197
198- Okay, but lets say you just don't care about recommendations and you have a great
198+ Okay, but let's say you just don't care about recommendations and you have a great
199199infix operator. Add them in a separate module. When someone sees an infix operator
200200they are unfamiliar with, they can scan the imports for a `Whatever.Infix` module
201201and limit the scope of their annoying search for your dumb operator.
You can’t perform that action at this time.
0 commit comments