Sylen’s right of course, but I find that in practice, broken glass is useless. If I need glass for crafting, I’ll smelt sand. I hate wasting inventory space on broken glass. I always throw it away immediately if I collect some when I have to break a window or what have you. It would be less annoying if instead of eating glass you could, I don’t know, splinter yourself to death with wood, since you always carry wood.
Basically, if I were prepared enough to carry glass to eat if I got stuck, I’d be prepared with enough actually useful materials to not get stuck in the first place. So maybe it was a good idea in older Alphas, but today I think the use case is dubious.