Something would be too long in my opinion.
I'm talking about Maybe.Just, of course. Just has always seemed strange to me, as if it's hinting that it's something other than just the counterpart to Nothing. I don't know the reasons behind its naming, but I think I would prefer Something, as in "something or nothing". What do you think?
--
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 elm-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
case maybeValue of
Something ->
someFunction model
Nothing ->
model--
`Just` seems the most natural to me. If I imagine myself explaining this to someone: "So in this scenario, the thing is not nothing, it's just the thing."
--
You received this message because you are subscribed to a topic in the Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elm-discuss/EHnuE_gGFuo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elm-discuss...@googlegroups.com.
--
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 elm-discuss+unsubscribe@googlegroups.com.
email to elm-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elm-discuss/EHnuE_gGFuo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
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 elm-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elm-discuss/EHnuE_gGFuo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elm-discuss+unsubscribe@googlegroups.com.
--
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 elm-discuss+unsubscribe@googlegroups.com.
I remember being confused by Just, and I still find it awkward.
On 22 Nov 2016, at 10:20, Oliver Searle-Barnes <oli...@opsb.co.uk> wrote:
The problem with Some is that it should be A/An/Some depending on the subject. I'm starting to come round to Thing vs Nothing. While the grammer isn't spot on the semantics are very clear.
On Tuesday, 22 November 2016 11:06:10 UTC+1, Will White wrote:
weapon = Just sword doesn’t make sense for Maybe. It implies “just sword, out of all the weapons”. Just wouldmake sense in a Just weapon | All (List weapon) type, where weapon could also be All [ sword, mace, nunchuk ].
I see.
To unsubscribe from this group and all its topics, send an email to elm-discuss+unsubscribe@googlegroups.com.
--
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 elm-discuss+unsubscribe@googlegroups.com.
My opinion on this isn't nothing, it's just that just makes the most sense.
To unsubscribe from this group and all its topics, send an email to elm-discuss+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elm-discuss/EHnuE_gGFuo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elm-discuss+unsubscribe@googlegroups.com.
Thing a | Nothing is also my favourite between the proposed ones.If the type label is thought of as an adjactive, like for example, intype Entry = Male Person | Female Personthen Just makes more sense.However, my observation is that these type labels are more often named after nouns, like intype Angle = Radian Float | Degree FloatIn this case, Thing is makes more sense.
On Wed, Nov 23, 2016 at 11:19 PM, Will White <will.n...@gmail.com> wrote:
The fact that you have to have a way of making sense of it is exactly my point. I think if it was Thing a | Nothing you wouldn’t have to do this to understand it.
On 23 Nov 2016, at 22:01, Erkal Selman <erkal...@gmail.com> wrote:
I don't have a strong opinion about this issue, but here is why Just makes sense to me:Say that you have the type Maybe Int.A value of this type can be Nothing, or it can be, for example, Just 42.It cannot be Error 42 or Person 42, it can be just 42.
On Wednesday, November 23, 2016 at 7:06:14 PM UTC+1, Daniel Walker wrote::)
On Wednesday, November 23, 2016 at 10:59:24 AM UTC-7, Rex van der Spuy wrote:
On Wednesday, November 23, 2016 at 12:15:50 PM UTC-5, Daniel Walker wrote:My opinion on this isn't nothing, it's just that just makes the most sense.Maybe.--
You received this message because you are subscribed to a topic in the Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elm-discuss/EHnuE_gGFuo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elm-discuss...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elm-discuss/EHnuE_gGFuo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elm-discuss...@googlegroups.com.
--
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 elm-discuss...@googlegroups.com.
elm = Such wow
I have it, I have it, look at this:
type Maybe a = Nothing | Maybe a
It's very popular to name constructor after type in many languages.
case msg of
Maybe This -> ...
Maybe That -> ...
Nothing -> ...
Also, "Just" is just fine as well.
Maybe a = Nothing | Such a
elm = Such wow
--
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 elm-discuss+unsubscribe@googlegroups.com.
I have it, I have it, look at this:
type Maybe a = Nothing | Maybe a
It's very popular to name constructor after type in many languages.
case msg of
Maybe This -> ...
Maybe That -> ...
Nothing -> ...Also, "Just" is just fine as well.
24.11.2016 10:21 PM "Michael B" <mbyl...@gmail.com> napisał(a):
Maybe a = Nothing | Such a
elm = Such wow
--
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 elm-discuss...@googlegroups.com.
type Maybe a = Nothing | Maybe a
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscribe@googlegroups.com.
Has anyone actually encountered anyone being confused by the names? I
haven't. I think this a solution to a problem that doesn't exist.
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Elm Discuss" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/elm-discuss/EHnuE_gGFuo/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> elm-discuss...@googlegroups.com.
>>> 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 elm-discuss...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Elm Discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elm-discuss/EHnuE_gGFuo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
To me this makes no sense. Maybe implies uncertainty: it's either there or it's not.
type Maybe a = Is a | Nothingcase msg ofIs This -> ...Is That -> ...Nothing -> ...