utahplt / chorex

Choreographic programming in Elixir
https://hex.pm/packages/chorex
MIT License
14 stars 0 forks source link

mix format broke my defchor #5

Closed bennn closed 3 weeks ago

bennn commented 1 month ago

Correct code:

    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
bennn commented 4 weeks ago

ok to close right?