Open superbobry opened 7 years ago
Some differences are indeed intentional, but others are just inconsistencies that you've correctly pointed out.
Would you accept a PR renaming/deprecating some of these?
Sure. Just please don't make breaking changes.
A few points:
[@@deprecated ..]
to deprecate functionswith
@rgrinberg @superbobry I just created a PR for this issue. I was careful not to introduce any breaking change but did add an optional argument flush
to the Lwt.Server.respond_string
function. If the changes are approved, I could work on renaming the other functions and their optional/labeled arguments.
Here's a single example from
Server
:and
The two functions are (almost) functionally identical, but they have slightly different names and slightly different parameters. I wonder if this was intentional? i.e. to make the user read the code carefully after the switch to another library.