Slice.skipBits()If you've previously tried to assign it's results somewhere, it failed with an unwieldy FunC error. But now, the return type is cleared, so one more unreadable error got out of the way!
If you need its return value for some reason, take a look at Slice.preloadBits()
🧑🍳 Contributor: Gusarich
🐙 Implementation: #388
🍽 To be released in: v1.4.0
⚡️ 1. Added bitwise NOT
~ operator// Let's flip some bits! (~˘▾˘)~
let nice: Int = ~~~~42 + ~~~~27;
// ~(˘▾˘~)
dump(nice);
🧑🍳 Contributor: Gusarich
🐙 Implementation: #337
🍽 To be released in: v1.4.0
⚡️ 2. Added
&=, |= and ^= operatorsThey combine operations (
&, |, ^) with an assignment, so that you can move from this:a = a & 01000101; // bitwise AND
b = b | 01000101; // bitwise OR
c = c ^ 01000101; // bitwise XOR
To this:
a &= 01000101;
b |= 01000101;
c ^= 01000101;
🧑🍳🎉 Community contributor: Alejandbel
🐙 Implementation: #350
🍽 To be released in: v1.4.0
🍲 When cooking, make sure not to leave the trail of bits
♨️ @tact_kitchen
