Why are interval comparisons (e.g: x < variable < y) not supported in most “mainstream” languages?
问题 This might be a very simple question, or perhaps have been asked before but I couldn't really find an answer after a brief search here and via google. So taking the risk of having missed something similar to this, here goes my question. Why is it so that conditional statements checking for intervals are often not supported as they are, but instead implemented as block if s or using the && operator to bind together the two separate conditions? Admitted that it's not the whole world if I have