You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Alias givens map to implicit methods. If an alias has neither typeparameters nor a givenclause, its right-hand side is cached in a variable. There are two cases that can be optimized:
32
-
33
-
-If the right hand side is a simple reference, we can
34
-
use a forwarder to that reference without caching it.
35
-
-If the right hand side is more complex, but still known to be pure, we can
36
-
create a `val` that computes it ahead of time.
31
+
3. Alias givens map to implicit methods or implicitlazy vals. If an alias has neither typeparameters nor a givenclause,
32
+
it is treated asalazyval, unless the right hand side is a simple reference, in which case we can use a forwarder to that
33
+
reference without caching it.
37
34
38
35
Examples:
39
36
40
37
```scala
41
38
givenglobal as ExecutionContext=newForkJoinContext()
0 commit comments