Records can still be useful in union types if you have more than a few fields, or multiple fields of the same type. Often you write a function that updates a record by looking at a select few fields and it never needs to know about others. Occasionally you will have multiple records of this sort. So you can pipe the different records in different cases to the same function to handle that part of the update, and then other logic to handle whatever else needs to happen.
-- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.