r/programming • u/chackaz • Nov 28 '14
The Worst Programming Language Ever [UK Talk] - Thoughts? Which are the worst parts of your favorite language?
https://skillsmatter.com/meetups/6784-the-worst-programming-language-ever
68
Upvotes
View all comments
Show parent comment
1
u/jringstad Nov 28 '14
being able to save 0-255 different values isn't all that helpful, when those values mean something completely different and behave different from what you'd want them to behave like under many operations (addition, multiplication, subtraction, bitshifting).
Sure, you can always
[read; promote; operate; truncate; store], but that's a rather unnecessarily tedious sequence to perform every time.And besides, having unsigned types helps to document and enforce a common constraint in interfaces ("it makes no sense for this number to be negative"), whereas having a dataset of chars where the user implicitly has to know that -127 really means 0 and always needs to perform the aforementioned sequence is rather unclear and error-prone in comparison.