Re: [elm-discuss] Two suggestions for improvements (Regex and Navigation)

2016-09-13 Thread d . vandeneijkel
Ok, the solution would look like this; but not sure if it's ok to create a new parser every time the addressbar changes... https://github.com/aische/navigation/blob/master/src/Navigation.elm (new function: programWithFlags' )

Re: [elm-discuss] Two suggestions for improvements (Regex and Navigation)

2016-09-13 Thread d . vandeneijkel
That's a good idea. It does not play well with the architecture of the program I was working on, but I will investigate it. Thank you! BTW, I just realized, that my original suggestion would not work, because the parser is used at two places; in the init-function it has access to the flags,

[elm-discuss] Two suggestions for improvements (Regex and Navigation)

2016-09-13 Thread d . vandeneijkel
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