Skip to content

Clarify sync trait explanation #228

@iacri

Description

@iacri

I could not follow logically the explanation for the Sync trait:

In order words: T: Sync means that &T is Send.
[...]
Sync doesn't imply Send
[...]
Send doesn't imply Sync

I think what has explained it better for me is the rust book:

T is Sync if and only if &T is Send

At the same time, I think there is something that was being said in the Sync trait chapter of this course which has been lost on me. Is it about the fact that T being Sync doesn't give any kind of guarantee about T being Send (instead of &T)?

In any case, I think a rewording could help there, even if only to adjust the apparent logical discrepancy (first A => B, then A =/> B apparently)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions