Re: [elm-discuss] Dot notation for default value fails on compilation

2016-07-30 Thread Austin B
Oh nice, okay. thank you. On Saturday, July 30, 2016 at 2:43:36 PM UTC-7, Janis Voigtländer wrote: > > Known issue: https://github.com/elm-lang/elm-compiler/issues/635. > > Am Samstag, 30. Juli 2016 schrieb Austin Baltes : > >> Hi, I'm working on building a scatterPlot module for one of my Elm

[elm-discuss] How are deeply nested records updated or what alternatives are typically used?

2016-08-01 Thread Austin B
Hi, I come from an OOP background and trying to make the leap to keeping all state in a single immutable data store, which has shown to be amazing as long as the system is small, but I am having trouble scaling up to anything beyond a toy app. One big challenge is trying to update nested

[elm-discuss] Re: How are deeply nested records updated or what alternatives are typically used?

2016-08-02 Thread Austin B
Hi all, I really appreciate the ample feedback. As I am new to the functional style, Sergey, your input is extremely helpful. For some reason, I felt like I was supposed to have all my modifiers and data structure definitions in one place, which became unmanageable. I am currently refactoring

Re: [elm-discuss] Re: How are deeply nested records updated or what alternatives are typically used?

2016-08-02 Thread Austin B
I think that would be the case. Although, I'd imagine I'd be using dictionaries in this situation once I get to the point of having "Maybe" data in this particular example. I am beginning to understand the value of flattening data structures in this context. On Tuesday, August 2, 2016 at

[elm-discuss] How to check if all Maybes are specified and use values directly (without using "withDefault")

2016-08-03 Thread Austin B
I am trying to ensure that three arguments to a function are all not Nothing. Right now I have this (below), which works, but uses "withDefault." I want to avoid this because the default values are meaningless and I want to clearly and fundamentally avoid any possible situation where a Nothing