3 ms·
There is nothing wrong with the protocol. The protocol has nothing to do with what representation is used by software that speaks the protocol. Software could j
by throwaway8581 6y ago
There is nothing wrong with the protocol. The protocol has nothing to do with what representation is used by software that speaks the protocol. Software could just as well parse those values as integers. Just drop the decimal point and pad with zeroes. Or use a decimal type (but there is really no need to).
- 8note 6y agoThe protocol has an obvious implementation choice and some non-obvious alternatives. If the protocol had nothing to do with it, I don't think you'd see the same bug come up in as many implementations
- deleted 6y ago[deleted]
- duckerude 6y agoAssigning blame is a bit academic. I think a protocol that used integers instead of decimal point would have led to more correct implementations. So it would be a better protocol.
- quantified 6y agoIt’s on implementors to be correct. No one said the Java implementation needed to use float or double. Java isn’t the only web server implementation language.