"What about when you're in the middle of nowhere and there's no where to hide? What if you're stopping for lunch? What about a 15 minute nap? What about a 3 hour nap? What if you're above treeline or in the desert with no trees?"
i alternate between hanging, my Ursack, or my canister, depending on where i'm going. in my local forests (southern California), i hang or carry an Ursack, depending on whim and trip location. the bears locally are pretty mild. in the Sierra, i've twice had to fend off bears who were intend on seeing if i had any goodies. so i carry a canister there wherever it's legally required, or rely on a route with bear lockers.
when i head for the desert, it's the Ursack, because rodents and very smart crows/ravens are the problems there. i've seen holes chewed in packs (and any plastic bag, with food in it or not, is an invitation to chew) by rodents (mice, rats, squirrels), and once in the Grand Canyon we saw a flock of ravens settle into the campsite next to ours while the occupants were away. we didn't realize it, but the ravens were actually opening zippers and pecking holes in their packs. our neighbors told us later that they pecked through every plastic bag they found.
in high alpine areas, Marmots become a different kind of problem. they will absolutely chew up anything that is soaked with salty sweat. lost a pair of hiking poles to one once, the little bugger.
i'm digressing. where i hike, especially in the Sierra, sleeping with your food is asking for trouble.
i think most folks here are asking that you not contribute to making problems in the future. if a bear gets hold of your food, it becomes conditioned. conditioned bears lead to bear shootings, mandatory canister policies, and bigger PITAs for everybody. if you're heading out where humans are raely found, you may be able to get away with the sleeping technique. i wouldn't do it, but then i'm conditioned to marauding bears, so i'd probably lay awake all night listening for that telltale snorting.