Hello everyone, Elm is great, and version 0.17 is wonderfull. Most of the time, programming in Elm feels like exactly how you would like to build things. A big thank-you to all the people who made it happen!
However, I stumbled over two litte things that could be improved. One concerns the core packages, and one the Navigation package. I hope that here's the right place for this. 1. Creating a Regex from user input. The problem now is that an invalid regex string causes Elm to crash. So I wonder if the function 'regex' in module Regex could return a 'Maybe Regex' instead of simply a Regex? I did not look into the source code, but I guess it should be possible to catch the error in javascript and return Nothing to the Elm program if the regex is invalid. 2. Giving the Url-Parser (of the Navigation package) access to the program flags. This was a little show stopper for me. I wanted to write a single page app that does not have to be recompiled if you switch the language. Different language files are built in, and there is a flag to choose the language. The problem is, that the paths in the url (after the hash) should also be in the chosen language. The url parser does not have access to the model (and I don't see how it could), but it could at least get access to the flags. I think that could be accomlished easily in Navigation.programWithFlags. I'd be happy to hear your opinions. Please tell me if this is the right way to suggest changes, or how I should proceed with such things. Thanks, Daniel -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
