Would it break things to allow a Barbarian to cast spells in rage?

If I was to make a homebrew barbarian subclass that allows barbarians to cast spells in rage, or allowed a barbarian that multiclassed into a spellcasting class, would it break anything? It doesn’t seem that it would, because the no spells while raging mechanic has always struck me as mainly mechanic, but I could be wrong.