That's a standard practice in languages that don't have namespaces. C and Emacs Lisp have both proven to be "working out" for decades despite using prefixes instead of namespace support.
Why not? Using prefixes to create a "namespace" is a well-established practice in CSS. I'm not sure there's much of a point in doing it to use multiple frameworks, but there's really no reason it wouldn't work.