Skip to content

net: make close/0, select/2 and remote/0 methods of UdpSocket pub - #24004

Merged
spytheman merged 1 commit into
vlang:masterfrom
larpon:net/make-useful-udp-funcs-pub
Mar 22, 2025
Merged

spytheman merged 1 commit into
vlang:masterfrom
larpon:net/make-useful-udp-funcs-pub

Conversation

@larpon

@larpon larpon commented Mar 22, 2025

Copy link
Copy Markdown
Contributor

The return signature of remote/0 is also changed to use an Option (none) instead of a Result (error('none')). This oddity is likely a workaround for older versions of V.

โ€ฆ `pub`

The return signature of `remote/0` is also changed to use an `Option`
(`none`) instead of a `Result` (`error('none')`). This oddity is likely
a workaround for older versions of V.
@huly-for-github

Copy link
Copy Markdown

Connected to Hulyยฎ: V_0.6-22397

@spytheman

spytheman commented Mar 22, 2025 •

Copy link
Copy Markdown
Contributor

This oddity is likely a workaround for older versions of V.

It is the result of the !?Type split. At the time, the semantic preserving change was for just mechanically do: return error('none') for cases that were not clearly written for either ?Type vs !Type, and that did return none

@spytheman
spytheman merged commit 20d7d97 into vlang:master Mar 22, 2025
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

Successfully merging this pull request may close these issues.

2 participants