<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def same_domain(self, other):
 """ Cheap pointer comparison or symmetric difference operation to ensure domains are the same """

        return self.domain == other.domain or \
                len(self.domain.symmetric_difference(set(other.domain))) == 0