@@ -36,7 +36,10 @@ external throw: Stdlib_Error.t => 'a = "%raise"
36
36
37
37
/* Composition operators */
38
38
39
+ @deprecated ("This will be removed in v13" )
39
40
external \"|>" : ('a , 'a => 'b ) => 'b = "%revapply"
41
+
42
+ @deprecated ("This will be removed in v13" )
40
43
external \"@@" : ('a => 'b , 'a ) => 'b = "%apply"
41
44
42
45
/* Debugging */
@@ -90,7 +93,10 @@ external \"||": (bool, bool) => bool = "%sequor"
90
93
91
94
/* Integer operations */
92
95
96
+ @deprecated ("Use `x + 1` instead. This will be removed in v13" )
93
97
external succ : int => int = "%succint"
98
+
99
+ @deprecated ("Use `x - 1` instead. This will be removed in v13" )
94
100
external pred : int => int = "%predint"
95
101
96
102
@deprecated ("Use `Math.abs` instead. This will be removed in v13" )
@@ -101,14 +107,25 @@ let abs = x =>
101
107
- x
102
108
}
103
109
110
+ @deprecated ("Use `Int.bitwiseAnd` instead. This will be removed in v13" )
104
111
external land : (int , int ) => int = "%andint"
112
+
113
+ @deprecated ("Use `Int.bitwiseOr` instead. This will be removed in v13" )
105
114
external lor : (int , int ) => int = "%orint"
115
+
116
+ @deprecated ("Use `Int.bitwiseXor` instead. This will be removed in v13" )
106
117
external lxor : (int , int ) => int = "%xorint"
107
118
119
+ @deprecated ("Use `Int.bitwiseNot` instead. This will be removed in v13" )
108
120
let lnot = x => lxor (x , - 1 )
109
121
122
+ @deprecated ("Use `Int.shiftLeft` instead. This will be removed in v13" )
110
123
external lsl : (int , int ) => int = "%lslint"
124
+
125
+ @deprecated ("Use `Int.shiftRightUnsigned` instead. This will be removed in v13" )
111
126
external lsr : (int , int ) => int = "%lsrint"
127
+
128
+ @deprecated ("Use `Int.shiftRight` instead. This will be removed in v13" )
112
129
external asr : (int , int ) => int = "%asrint"
113
130
114
131
@deprecated ("Use `Int.Constants.maxValue` instead. This will be removed in v13" )
@@ -308,6 +325,7 @@ external string_of_int: int => string = "String"
308
325
@deprecated ("Use `Int.fromString` instead. This will be removed in v13" ) @scope ("Number" )
309
326
external int_of_string : string => int = "parseInt"
310
327
328
+ @deprecated ("Use `Int.fromString` instead. This will be removed in v13" )
311
329
let int_of_string_opt = s =>
312
330
switch int_of_string (s ) {
313
331
| n if n == %raw ("NaN" ) => None
@@ -328,4 +346,5 @@ let rec \"@" = (l1, l2) =>
328
346
329
347
/* Miscellaneous */
330
348
349
+ @deprecated ("This will be removed in v13" )
331
350
type int32 = int
0 commit comments