Re: [elm-discuss] 0.17-compatible web storage

2016-10-31 Thread Joe Clay
I think it ties in with the general theme of Elm trying to guide you into making the right choices - if there's no real use case for LocalStorage other than using it as a cache, why expose the low level bindings and allow people to shoot themselves in the foot with them? On Monday, October 31,

[elm-discuss] Re: using js library inside elm?

2016-10-13 Thread Joe Clay
Basically, you need two ports to call out to an external method - one for you to pass out the arguments, and one for you to get the return value back. The JavaScript interop section of the guide demonstrates how to do this :) On Thursday, Oc