mirror of
https://github.com/janet-lang/janet
synced 2025-10-15 07:47:40 +00:00
Remove mutable operators on inttypes.
Mutations break hash table invariants, are a rather silly performance optimization for a language like Janet.
This commit is contained in:
@@ -72,9 +72,6 @@
|
||||
"trap INT64_MIN / -1"
|
||||
(:/ (int/s64 "-0x8000_0000_0000_0000") -1))
|
||||
|
||||
# in place operators
|
||||
(assert (let [a (u64 1e10)] (:+! a 1000000 "1000000" "0xffff") (:= a 10002065535)) "in place operators")
|
||||
|
||||
# int64 typed arrays
|
||||
(assert (let [t (tarray/new :int64 10)
|
||||
b (i64 1000)]
|
||||
|
Reference in New Issue
Block a user