Skip to content

Operators #28

@fakenickels

Description

@fakenickels

Would be cool if it provided some well-known operators like and some others to work with Js.t

(>>=) = bind (for options)

// the dot would be to recall the {. } syntax shotcut for JS objects in Reason

(||.) = defaults Js.Null_undefined
// nullableStringFn() ||. "default!"

(>>=.) = Bind Js.Null_undefined
// nullableObjectReturn >>=. (x => x##foo) >>=. (foo => foo##bar) ||. "default!"

etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions