Closed Janiczek closed 4 years ago
Thanks!
Not too sure about the naming. I usually namespace the Html.Extra
values while directly exposing Html.Attributes.Extra
functions. It feels weird/inconsistent to have one be nothing
and the other be empty
. Maybe change Html.Extra.nothing
to empty
and this to emptyAttribute
? :man_shrugging:
I'm going to solicit Slack for opinions.
Otherwise, everything looks good!
And maybe we want to include attributeIf
/attributeMaybe
functions like the viewXYZ
functions in Html.Extra
?
@prikhi I agree wtih attributeIf
and attributeMaybe
!
Will you ping me here when you get some feedback re empty/nothing/noOp/...
from Elm Slack and make a decision? Thanks :slightly_smiling_face:
@Janiczek I think empty is fine. Do you want to add the function versions to this PR?
@prikhi Here you are! :)
Thanks! New version on the way.
Would
noOp
be a better name?nothing
? (That one would probably clash withHtml.Extra.nothing
if people imported using(..)
...)Here's the side effects Ellie: https://ellie-app.com/8g8HyJvGPS4a1