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

Ruby 3.3のBasicSocket#recvについて #2874

Open
iyuuya opened this issue Mar 7, 2024 · 2 comments
Open

Ruby 3.3のBasicSocket#recvについて #2874

iyuuya opened this issue Mar 7, 2024 · 2 comments

Comments

@iyuuya
Copy link

iyuuya commented Mar 7, 2024

返り値が String から String or nil になっていそうです。
詳しくは見れていませんが、関連してrecv_nonblock, recvmsg_nonblockも対象になりそうです。

refs:

@bmf-san
Copy link
Contributor

bmf-san commented Jun 6, 2024

@iyuuya
ReferenceManualFormatDigest#返り値の書き方を参照するに、特定の型かnilを返り値とする場合は特定の型のみ返り値として記載するようです👀

@bmf-san
Copy link
Contributor

bmf-san commented Jun 6, 2024

と思ったんですが、Integer | nil のように書いているケースもありますね・・ 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants