Skip to content

Sockets tutorial goes on tangents, used unwind-protect instead of macros #506

@bpseudopod

Description

@bpseudopod

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 to unwind-protect.

I'll probably give a shot at rewriting it soon.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions