yes, like you said, "a general rule", not the law. thicker snakes require deeper cages. thinner snakes of the same length can do fine in narrow cages. I think most adult king\milk will do well with a 36x18 floor space, though I would provide larger species (Honduran for example) with 36x24 or preferably 48x24. kings and milks will climb, but I don't feel it's a requirement as they are largely terrestrial.
as always, know the animals needs.