Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stringly typed #15

Closed
SwiftsNamesake opened this issue Nov 28, 2016 · 2 comments
Closed

Stringly typed #15

SwiftsNamesake opened this issue Nov 28, 2016 · 2 comments

Comments

@SwiftsNamesake
Copy link

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.

@process-bot
Copy link

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.

@evancz
Copy link
Member

evancz commented Nov 30, 2016

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.

@evancz evancz closed this as completed Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants