|
|
|
|
|
by fferen
1377 days ago
|
|
> For example, if I have a `Point` object with `x` and `y` fields, and I make a function called `lowest_point`, it knows I want to the point with the minimum `y` value. Because it knows the name `y` is most typically used for vertical direction, and the word `lowest` also implies vertical direction. Unless, as in many systems, y=0 is the top and y increases downward. |
|
For example, I just gave Copilot:
and it completed: Even if you write some code that implies that bigger y is lower, Copilot will pick up on it.