Skip to content
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

Deprecate withMonitor or fuse withMonitorRef #281

Open
mboes opened this issue Mar 11, 2016 · 7 comments
Open

Deprecate withMonitor or fuse withMonitorRef #281

mboes opened this issue Mar 11, 2016 · 7 comments
Projects

Comments

@mboes
Copy link
Contributor

mboes commented Mar 11, 2016

I think it's confusing to have both withMonitor and withMonitorRef. The two functions are nearly identical. Could we either deprecate withMonitor, since withMonitorRef is all that's needed, or (at the cost of a breaking change) make the naming consistent with base: i.e.

withMonitor :: ProcessId -> (MonitorRef -> Process a) -> Process a
withMonitor_ :: ProcessId -> Process a -> Process a

(as in mask_ and bracket_ in Control.Exception and elsewhere)

If we deprecate withMonitor now, it leaves us free to recycle that name to make the naming consistent in a later release.

@hyperthunk
Copy link
Member

+1

@qnikst
Copy link
Contributor

qnikst commented Mar 12, 2016

I agree to make such patch, but I'm not sure what will our strategy be here, and as consequence what to put into deprecation message.

Will DEPRECATED withMonitor "this function is a subject of refactoring in next major release see issue #281 for details" be ok? As it seems that such message will cover all possible cases.

@hyperthunk
Copy link
Member

I've deleted my comments/questions about the branching process. We can discuss it on the mailing list instead.

@qnikst that deprecation message looks fine to me.

@qnikst
Copy link
Contributor

qnikst commented Nov 8, 2018

@hyperthunk how much effort do you plan to put into d-p now, if there will be enough changes for the major release, we can just remove the message, and write the change to the changelog. If you want to have a minor cleanup release, then deprecation message is fine.

@hyperthunk
Copy link
Member

I'm going to pull together a fix for the tracing bugs and a hope to close out a number of other open issues, so let's sit tight until I've got enough changes for a major release.

@qnikst
Copy link
Contributor

qnikst commented Nov 8, 2018

Ok, then we should verify that everything is in master and provide deprecation message, will you do that yourself or want me to take care of that.

@hyperthunk
Copy link
Member

I'll do it once the rest of my patches have been merged.

@hyperthunk hyperthunk added this to To do in Release 0.8 Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Release 0.8
  
Backlog
Development

No branches or pull requests

3 participants