0 Members and 6 Guests are viewing this topic.
The #If and #End would be super easy to code, but what would be good symbols for those to replace?
Quote from: Quigibo on August 03, 2011, 01:55:47 pmThe #If and #End would be super easy to code, but what would be good symbols for those to replace?I had two ideas for this:The first and most obvious solution would just be to make 3 unrelated tokens the tokens for #If, #Else, and #End. The tokens under VARS → Table... could be useful for this, as it's a menu containing exactly 3 unused tokens. #ElseIf would probably just be a combination of #Else and the normal If. This method would have the advantage of looking nicer with Axe-tokenized code, but they would look pretty confusing without Axe token replacements like in SourceCoder.My other idea would be to replace IS<( with #If and just use the normal Else and End. This would have the advantage of looking just about as good in something like SourceCoder and being easier to type on both platforms. However, the lack of hash marks preceding Else, ElseIf and End might be undesirable.
Also, octothorpe? Haven't heard that used.
The convention I use when reading code aloud is:Code: [Select]# - Hash! - Bang* - Splat/ - Whack
# - Hash! - Bang* - Splat/ - Whack
Quote from: Quigibo on August 03, 2011, 01:55:47 pmAlso, octothorpe? Haven't heard that used.Lol I don't think that's the one usually used, especially in coding.
It's fairly common knowledge that you shouldn't use equal/not-equal comparison for floating-point numbers, and this applies to fixed-point as well.
And when you type 7/10 in Java/C, it DOES equal 0.7f/d, not something like 0.66f/d. You know as well as I do that's not a good comparison; the two forms of floating point notations work entirely differently, using different techniques (and in most languages, the amount of numbers that can be stored is already specified in digits, not in 256 base-units).
It's 7.22 because it can get an 8th, though you know that eighth has no usable purpose. With Axe, if the XXX.XXX must stay, make sure to warn people that the sixth X is crap and never ever to use it.