Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [golo-dev] Option type as a standard Golo Type ?

@Yannick, ok thks a lot :)

On Sat, Jan 2, 2016 at 3:22 PM, Yannick Loiseau <me@xxxxxxxxxxxx> wrote:

with `orElse` you provide a plain value to use if your `Optional` is
empty, while with `orElseGet` you provide a function that will generate
the value to use...

Philippe Charrière (2016-01-02 12:37):
> not sure I really understand between orElse and orElseGet ... and getOrElse
> ... learning functional programming is hard for my little brain
>
> On Sat, Jan 2, 2016 at 12:09 PM, Philippe Charrière <ph.charriere@xxxxxxxxx>
> wrote:
>
> > perhaps an Optional type with more things than J8 Optional ...
> > and what about Result type ? (an other debate?)
> >
> >
> > On Sat, Jan 2, 2016 at 11:31 AM, Julien Ponge <julien.ponge@xxxxxxxxxxxx>
> > wrote:
> >
> >> That’s a good question.
> >>
> >> On one hand we could provide such monads, on the other hand java.util has
> >> Optional in JDK8.
> >>
> >> So that’s a good debate to have ;-)
> >>
> >> - Julien
> >>
> >> > On 02 Jan 2016, at 10:51, Philippe Charrière <ph.charriere@xxxxxxxxx>
> >> wrote:
> >> >
> >> > Hi!
> >> > A little question, why not to provide Option type directly in Golo ?
> >> (rather than as a simple example)
> >> > _______________________________________________
> >> > golo-dev mailing list
> >> > golo-dev@xxxxxxxxxxx
> >> > To change your delivery options, retrieve your password, or unsubscribe
> >> from this list, visit
> >> > https://dev.eclipse.org/mailman/listinfo/golo-dev
> >>
> >> _______________________________________________
> >> golo-dev mailing list
> >> golo-dev@xxxxxxxxxxx
> >> To change your delivery options, retrieve your password, or unsubscribe
> >> from this list, visit
> >> https://dev.eclipse.org/mailman/listinfo/golo-dev
> >>
> >
> >

> _______________________________________________
> golo-dev mailing list
> golo-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/golo-dev


_______________________________________________
golo-dev mailing list
golo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/golo-dev



Back to the top