<p>Anyway, I like testing things before I use them, so after implementing my &quot;if&quot; and &quot;while&quot; I decide to write a simple Fizzbuzz program. This causes me to immediately realize—</p><p>I FORGOT TO IMPLEMENT &gt; AND &lt;</p><p>I just forgot!! Fortunately I *did* include bit arithmetic ops, so I implement &lt;, &gt;, &lt;=, &gt;= in userland as well, by testing bit (1&lt;&lt;63) as a proxy for 2&#39;s compliment negative. This is actually a little worrisome. I&#39;m not sure if this code truly &quot;works&quot; or if I&#39;m just leveraging UB in Rust.</p>
Attached image 0Attached image 1
Reply