Skip to content

Commit

Permalink
deprecate op_compare in favor of compare (#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackwaly authored Dec 5, 2024
1 parent 7d7b5a8 commit 899587d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builtin/builtin.mbti
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,10 @@ impl Unit {


impl Bool {
compare(Bool, Bool) -> Int
default() -> Bool
not(Bool) -> Bool
op_compare(Bool, Bool) -> Int
op_compare(Bool, Bool) -> Int //deprecated
op_equal(Bool, Bool) -> Bool
to_json(Bool) -> Json
to_string(Bool) -> String
Expand Down
4 changes: 4 additions & 0 deletions builtin/intrinsics.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ pub fn Bool::not(self : Bool) -> Bool = "%bool_not"
pub fn Bool::op_equal(self : Bool, other : Bool) -> Bool = "%bool_eq"

///|
/// @alert deprecated "Use `compare` instead"
pub fn Bool::op_compare(self : Bool, other : Bool) -> Int = "%bool_compare"

///|
pub fn Bool::compare(self : Bool, other : Bool) -> Int = "%bool_compare"

///|
pub fn Bool::default() -> Bool = "%bool_default"

Expand Down

0 comments on commit 899587d

Please sign in to comment.