> ['Ride', {
>   numberOfDoors: 4
> }]
> 
> or ['Fly', {
>   maxSpeed: 1000
> }]

Personal experience: I think that tends to be too confusing when the object 
(inevitably) gets separated from the list. It all needs to be in one piece. I 
like to use fields beginning in underscores for this, like so:

    Encode.object
       [ ( "_kind", Encode.string "benchmark" )
       , ( "name", Encode.string name )
       , ( "status", encodeStatus status )
       ]

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