Are variadic parameters preferred for attributes? #35
Replies: 1 comment 4 replies
-
> Would you consider having convenience initializers like the following one added to the library? I stayed clear of "convenience initializers", because HTML is just such an unwieldy beast. I feel like whatever we'd choose as "normal" attributes, you'll quickly find another use case. And then you need a ton of overloads for each element (eg: to combine it with other attributes...). Also, given how easy it is to just bring-you-own-initializers in your package, I feel this is not really a good step for now. > Also, would additional HTMLAttribute be welcome (e.g. .width and height)? Absolutely! Those are just simply missing, and frankly I am a bit surprised that these are not there yet :/ |
Beta Was this translation helpful? Give feedback.
-
I'd intuitively want to write this:
But Elementary expects this:
Would you consider having convenience initializers like the following one added to the library?
Also, would additional
HTMLAttribute
be welcome (e.g..width
andheight
)?Beta Was this translation helpful? Give feedback.
All reactions