replace the horrible error system with multiple returns

This commit is contained in:
2026-05-28 17:28:57 +02:00
parent 0b16cc4513
commit f181cfe675
18 changed files with 138 additions and 199 deletions

View File

@@ -1,5 +1,7 @@
func main[] : i64
s : net.UDPSocket = must(net.create_udp_server?(net.pack_addr(127, 0, 0, 1), 8000))
~s, ok := net.create_udp_server(net.pack_addr(127, 0, 0, 1), 8000)
if !ok
panic("net.create_udp_server failed")
io.println("Listening on port 8000...")
while true