Seems like a good opportunity for a library. There's not anything I'm seeing there that would require changes to the core language. Building a library is a good way to test out if it's a popular idea and work though any of the design challenges.
On Sunday, September 4, 2022 at 3:52:04 PM UTC-4 pcarv...@gmail.com wrote: > It would be nice if you could assert fields of structures in a piped ecto > like style. > > Ex: > my_struct > |> assert_not_nil([:some_field,:other_field] > |> assert_exists([:another_field]) > |> do_something() > |> assert_expression([new_struct], new_struct.another_field != > my_struct.another_field ) > -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/53ac7704-2444-4308-8e77-3e3f1b4d216en%40googlegroups.com.