// Neq returns true if the left Object is not equal to the right Object.
// If either is nil Neq returns true.
// Comparing different types is also an error.
Neq returns true if the left Object is not equal to the right Object.
If either is nil Neq returns true.
Comparing different types is also an error.
// Neq returns true if the left Object is not equal to the right Object . // If either is nil Neq returns true . // Comparing different types is also an error .
func Neq(left Object, right Object) (Boolean, error) {
	leftIsNil := IsNil(left)
	rightIsNil := IsNil(right)
	if leftIsNil && rightIsNil {
		return Boolean(false), nil
	}
	if leftIsNil != rightIsNil {
		return Boolean(true), nil
	}
	return left.Neq(right)
}
func Neq ( left Object , right Object ) ( Boolean , error ) { leftIsNil := IsNil ( left ) rightIsNil := IsNil ( right ) if leftIsNil && rightIsNil { return Boolean ( false ) , nil } if leftIsNil != rightIsNil { return Boolean ( true ) , nil } return left . Neq ( right ) }
Neq returns true if the left Object is not equal to the right Object.
Neq returns true if the left Object is not equal to the right Object .
// If both are nil they are equal. // If one is nil and the other isn't they are not equal