-
Notifications
You must be signed in to change notification settings - Fork 189
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
socketPort
does not handle Unix sockets
#319
Comments
I'm not sure which is better:
|
@kazu-yamamoto It is a tough call. If we don't want to change the type signature then we must update the documentation. Option 1Pro
Con
Option 2Pro
Con
|
I would suggest to create a new API, for instance, |
kazu-yamamoto
added a commit
to kazu-yamamoto/network
that referenced
this issue
May 25, 2018
kazu-yamamoto
added a commit
to kazu-yamamoto/network
that referenced
this issue
May 25, 2018
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
socketPort
is a partial function. It only supportsAF_INET
andAF_INET6
. Its type signature is not really indicative of this.IO
informs that this function could throw from an exception, but partiality should be communicated withMaybe
.Originally reported by @RyanGlScott here #318 (comment)
The text was updated successfully, but these errors were encountered: