Ahoy! :)

Yes, everything you've said is correct, including avoiding unnecessary
maybes.

On Sun, Apr 2, 2017 at 11:41 PM, Richard Wood <[email protected]> wrote:

> Sounds like some nautical adventure!
>
> When is it appropriate to bring in data through flags vs through using
> ports.
> At the moment I'm thinking:
>
> Flags:
> * When needed immediately on initialisation
> * When it won't change
>
> Ports:
> * Dynamic data
> * Data not available at the start
>
> Is another reason to use a flag to avoid a perhaps unnecessary maybe? This
> came up when trying to have a time variable. I don't want a maybe time
> variable as then I have to handle the maybe every time I use it. So I'm
> thinking to pass the time in as a flag to begin with then keep it update
> through ports.
>
> --
> 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.
>

-- 
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.

Reply via email to