-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Sockets tutorial goes on tangents, used unwind-protect
instead of macros
#506
Labels
Comments
I also stumbled over the unwind-protect and considered a rewrite of the socket-tutorial. The with-macros don't seem to belong to the API though: https://usocket.common-lisp.dev/api-docs.shtml. Are they considered stable or is there a more recent documentation?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The sockets tutorial is kind of a mess to read. Both sections are weighed down with an extended tangent about the "mistakes" that the author encountered, which are confusing to read and can't be much more helpful than simply explaining how to use the library correctly.
Additionally, the code on display ignores the convenience macros that usocket offers, such as instead implementing equivalent functionality with
unwind-protect
, requiring that the reader think about conditions and control flow when they should be focusing on the socket API.This section should be rewritten to be more clear and direct, and should prefer the
with-
macros defined by the usocket package tounwind-protect
.I'll probably give a shot at rewriting it soon.
The text was updated successfully, but these errors were encountered: