Precisely, the thing like `MyButton.label` would return an appropriate instanced union holding whatever data you need.
On Friday, August 19, 2016 at 12:58:10 PM UTC-6, Nick H wrote: > > I don't think Overmind's and Richard's inputs are at odds. Richard has > suggested an API. Overmind's code is what might fit into "-- Implementation > goes here". > > On Fri, Aug 19, 2016 at 11:52 AM, Richard Feldman <richard....@gmail.com > <javascript:>> wrote: > >> `elm-mdl` is doing it that way because it is trying to follow how >>> Google's material library works, and since there is no way to introspect >>> into the virtualnode's to change how they act then it has to wrap things up >>> in that pattern, I.E., VirtualNode limitations and Html.Attributes >>> limitations require it to be this noisy. :-) >>> >> >> Yeah, elm-mdl has very specific and unusual design goals (in part >> because of ways MDL differs from other UI frameworks, and in part because >> of the author's goal for how to present MDL in a DSL) that make it >> substantially different from every other project in the Elm world...I would >> not look at its design and think "ah, this is probably what I want to do >> for my project!" because the opposite is far more likely. :) >> >> -- >> 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...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.