@@ -38,7 +38,10 @@ external throw: exn => 'a = "%raise"
3838
3939/* Composition operators */
4040
41+ @deprecated ("This will be removed in v13" )
4142external \"|>" : ('a , 'a => 'b ) => 'b = "%revapply"
43+
44+ @deprecated ("This will be removed in v13" )
4245external \"@@" : ('a => 'b , 'a ) => 'b = "%apply"
4346
4447/* Debugging */
@@ -92,7 +95,10 @@ external \"||": (bool, bool) => bool = "%sequor"
9295
9396/* Integer operations */
9497
98+ @deprecated ("Use `x => x + 1` instead. This will be removed in v13" )
9599external succ : int => int = "%succint"
100+
101+ @deprecated ("Use `x => x - 1` instead. This will be removed in v13" )
96102external pred : int => int = "%predint"
97103
98104@deprecated ("Use `Math.abs` instead. This will be removed in v13" )
@@ -103,14 +109,25 @@ let abs = x =>
103109 - x
104110 }
105111
112+ @deprecated ("Use `Int.bitwiseAnd` instead. This will be removed in v13" )
106113external land : (int , int ) => int = "%andint"
114+
115+ @deprecated ("Use `Int.bitwiseOr` instead. This will be removed in v13" )
107116external lor : (int , int ) => int = "%orint"
117+
118+ @deprecated ("Use `Int.bitwiseXor` instead. This will be removed in v13" )
108119external lxor : (int , int ) => int = "%xorint"
109120
121+ @deprecated ("Use `Int.bitwiseNot` instead. This will be removed in v13" )
110122let lnot = x => lxor (x , - 1 )
111123
124+ @deprecated ("Use `Int.shiftLeft` instead. This will be removed in v13" )
112125external lsl : (int , int ) => int = "%lslint"
126+
127+ @deprecated ("Use `Int.shiftRightUnsigned` instead. This will be removed in v13" )
113128external lsr : (int , int ) => int = "%lsrint"
129+
130+ @deprecated ("Use `Int.shiftRight` instead. This will be removed in v13" )
114131external asr : (int , int ) => int = "%asrint"
115132
116133@deprecated ("Use `Int.Constants.maxValue` instead. This will be removed in v13" )
@@ -310,6 +327,7 @@ external string_of_int: int => string = "String"
310327@deprecated ("Use `Int.fromString` instead. This will be removed in v13" ) @scope ("Number" )
311328external int_of_string : string => int = "parseInt"
312329
330+ @deprecated ("Use `Int.fromString` instead. This will be removed in v13" )
313331let int_of_string_opt = s =>
314332 switch int_of_string (s ) {
315333 | n if n == %raw ("NaN" ) => None
@@ -330,4 +348,5 @@ let rec \"@" = (l1, l2) =>
330348
331349/* Miscellaneous */
332350
351+ @deprecated ("This will be removed in v13" )
333352type int32 = int
0 commit comments