Skip to content

and和or的备注错误 #3070

@liufan-easemob

Description

@liufan-easemob

正确的逻辑是 Elixir 中的and/or对应 Erlang 的andalso/orelse,二者均为短路运算符,即仅在第一个参数无法确定结果时才计算第二个参数,而非 “不会计算第一个参数的值,而只会计算第二个参数”。

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