Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,611 for compared (0.11 sec)

  1. src/internal/types/testdata/check/expr2.go

    	// issue #28164
    	// testcase from issue
    	_ = interface{}(nil) == [ /* ERROR "slice can only be compared to nil" */ ]int(nil)
    
    	// related cases
    	var e interface{}
    	var s []int
    	var x int
    	_ = e == s // ERROR "slice can only be compared to nil"
    	_ = s /* ERROR "slice can only be compared to nil" */ == e
    	_ = e /* ERROR "operator < not defined on interface" */ < x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/SortedMapDiffUtil.java

                while (true) {
                    K previousProperty = previousEntry.getKey();
                    K currentProperty = currentEntry.getKey();
                    int compared = comparator.compare(previousProperty, currentProperty);
                    if (compared < 0) {
                        if (!diffListener.removed(previousProperty)) {
                            return false;
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. src/internal/types/testdata/spec/comparisons.go

    	_ = b == b
    	_ = a /* ERROR "[10]func() cannot be compared" */ == a
    	_ = l /* ERROR "slice can only be compared to nil" */ == l
    	_ = s /* ERROR "struct containing []byte cannot be compared" */ == s
    	_ = p == p
    	_ = f /* ERROR "func can only be compared to nil" */ == f
    	_ = i == i
    	_ = m /* ERROR "map can only be compared to nil" */ == m
    	_ = c == c
    
    	_ = b == nil /* ERROR "mismatched types" */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. src/internal/types/testdata/fixedbugs/issue50918.go

    	things []string
    }
    
    type thing2 struct {
    	things []thing1
    }
    
    func _() {
    	var a1, b1 thing1
    	_ = a1 /* ERROR "struct containing []string cannot be compared" */ == b1
    
    	var a2, b2 thing2
    	_ = a2 /* ERROR "struct containing []thing1 cannot be compared" */ == b2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 453 bytes
    - Viewed (0)
  5. src/maps/maps.go

    // Values are compared using ==.
    func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool {
    	if len(m1) != len(m2) {
    		return false
    	}
    	for k, v1 := range m1 {
    		if v2, ok := m2[k]; !ok || v1 != v2 {
    			return false
    		}
    	}
    	return true
    }
    
    // EqualFunc is like Equal, but compares values using eq.
    // Keys are still compared with ==.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 20:35:05 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/internal/types/testdata/fixedbugs/issue43110.go

    	case a: // no follow-on error here
    	}
    
    	// this is ok because f can be compared to nil
    	var f func()
    	switch f {
    	}
    
    	switch f {
    	case nil:
    	}
    
    	switch (func())(nil) {
    	case nil:
    	}
    
    	switch (func())(nil) {
    	case f /* ERRORx `invalid case f in switch on .* \(func can only be compared to nil\)` */ :
    	}
    
    	switch nil /* ERROR "use of untyped nil in switch expression" */ {
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 794 bytes
    - Viewed (0)
  7. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/ChildMapFactory.java

            }
        }
    
        static <T> ChildMap<T> childMap(CaseSensitivity caseSensitivity, ChildMap.Entry<T> entry1, ChildMap.Entry<T> entry2) {
            int compared = PathUtil.getPathComparator(caseSensitivity).compare(entry1.getPath(), entry2.getPath());
            List<ChildMap.Entry<T>> sortedEntries = compared < 0
                ? ImmutableList.of(entry1, entry2)
                : ImmutableList.of(entry2, entry1);
            return childMapFromSorted(sortedEntries);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. pkg/maps/maps.go

    	for key, value := range subset {
    		if supersetValue, ok := superset[key]; !ok || supersetValue != value {
    			return false
    		}
    	}
    	return true
    }
    
    // EqualFunc is like Equal, but compares values using eq.
    // Keys are still compared with ==.
    func EqualFunc[M1 ~map[K]V1, M2 ~map[K]V2, K comparable, V1, V2 any](m1 M1, m2 M2, eq func(V1, V2) bool) bool {
    	return maps.EqualFunc(m1, m2, eq)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 01 22:48:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/api/artifacts/VersionConstraint.java

     *     <li>Only the parts of a version are compared. The actual separator characters are not significant: `1.a.1 == 1-a+1 == 1.a-1 == 1a1`</li>
     * </ul>
     * </li>
     * <li>The equivalent parts of 2 versions are compared using the following rules:
     * <ul>
     *     <li>If both parts are numeric, the highest numeric value is <b>higher</b>: `1.1 {@literal <} 1.2`</li>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 11:49:12 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. docs/en/docs/benchmarks.md

    But when checking benchmarks and comparisons you should keep the following in mind.
    
    ## Benchmarks and speed
    
    When you check the benchmarks, it is common to see several tools of different types compared as equivalent.
    
    Specifically, to see Uvicorn, Starlette and FastAPI compared together (among many other tools).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top