Stringly typed
SwiftsNamesake opened this issue · 2 comments
Wouldn't it be better for a statically typed language such as Elm to encode attribute values with appropriate types rather than using strings for most things?
I'm thinking especially of paths being defined as strings.
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
From the README https://github.com/elm-lang/svg/blob/master/README.md
Note: This library aims to be the most basic API. In some cases it is possible to use union types to build nicer abstractions, but this starts bringing personal taste into things and has some additional maintainance cost if the underlying spec changes. I think it is best to build such abstractions on top of this library as a separate package.