On Thursday, March 2, 2017 at 11:21:20 AM UTC, Rupert Smith wrote: > > On Thursday, March 2, 2017 at 1:30:44 AM UTC, Francesco Orsenigo wrote: >> >> 2) >> In my current project, I need to edit a "Rule" record. >> The app has already a "Rule" type, which *must* have an "id", because >> that's how the data arrives from the DB and is displayed to the user. >> However, the form to edit a Rule will need a different type, because >> depending on whether I am creating a new rule or editing an existing one, >> it may or may not have an "id". >> > > I have the same issue. All I did was to make the id a Maybe String. > > Blah blah blah >
But don't let me put you off. There are plenty situations where some syntax sugar can make our code more concise, I do agree. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
