Skip to content

Inconsistent naming of equality operator #551

@sim642

Description

@sim642

Expr.Bool calls it equal:

(** [equal expr1 expr2] constructs an equality expression. *)
val equal : t -> t -> t

The underlying Ty.Relop.t calls it Eq:

| Eq

Typed.Bool calls it eq:

smtml/src/smtml/typed.mli

Lines 125 to 126 in f50d5bf

(** [eq t1 t2] returns true if [t1] and [t2] are structurally equal. *)
val eq : 'a expr -> 'a expr -> t

I guess it probably should also be Expr.Bool.eq.
Although Expr.Bool seems like a strange module altogether: there aren't Expr.Int, etc like under Typed.

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