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