4 ms·
He also created a remake of this in C called "mos". Kind of irks me that he does "if(var == true)" instead of "if(var)" in certain spots though.
by milanove 10y ago
He also created a remake of this in C called "mos". Kind of irks me that he does "if(var == true)" instead of "if(var)" in certain spots though.
- saghm 10y agoHe's 15, I think it's okay to cut him some slack
- milanove 10y agoHe was able to make his own operating system though. However, I agree. In comparison to his achievement, simple code style choices are nearly irrelevant.
- deleted 10y ago[deleted]
- morbidhawk 10y agoWhy is the second version so much better? To me I think it's just a preference of the person reading the code. That it is true is implied, being explicit that it evaluates to true might be more clear to him when he goes back and reads his code.
- codazoda 10y agoI prefer the longhand version; seems a tiny bit more readable. We're talking about C, but it becomes important in some higher level languages. Just my personal preference though.