Why are pin operators necessary in Ecto queries?
问题 In Elixir, the pin operator is used to prevent variable rebinding. However, with regard to an Ecto query like from u in User, where: u.username == ^username the authors of Programming Phoenix state (in chapter 7) that Remember, the ^ operator (called the pin operator) means we want to keep ^username the same. But this doesn't sound right, because apparently, the comparison in the query shall not cause any rebinding of variables. Are the authors of the book (which José Valim co-authored)