This sounds pretty similar to the definition of a species.
If two organisms of appropriate gender can't reproduce with each other, then they probably aren't the same species.
If code from two samples can't be interspersed, then it's probably not the same language.