defchor [Buyer, Seller] do
Buyer.get_book_title() ~> Seller.b
Seller.get_price("book:" <> b) ~> Buyer.p
# Seller.get_price(b) ~> Buyer.p
Buyer.(p + 2)
end
after mix format there are () after Seller.p and Buyer's:
defmodule TestChor do
defchor [Buyer, Seller] do
Buyer.get_book_title() ~> Seller.b()
Seller.get_price("book:" <> b) ~> Buyer.p()
# Seller.get_price(b) ~> Buyer.p
Buyer.(p + 2)
end
end
Correct code:
after
mix format
there are()
afterSeller.p
and Buyer's: