News for hackers. Stuff that matters.
Re:Show HN: React-Most – Declarative Monadic Reactive State ... by polskibus on Wednesday December 07, 2016 @02:08PM (#13125222)
Can anyone explain what value does 'monadic' give to react?
Re:Show HN: React-Most – Declarative Monadic Reactive State ... by MawNicker on Wednesday December 07, 2016 @02:09PM (#13125229)
There are distinct notions of monad. Just a note.
Re:Show HN: React-Most – Declarative Monadic Reactive State ... by Nekorosu on Wednesday December 07, 2016 @03:28PM (#13125921)
That's not really helpful without at least two distinct notions of monads shown.
Re:Show HN: React-Most – Declarative Monadic Reactive State ... by mpfundstein on Thursday December 08, 2016 @08:18AM (#13130074)
a data class / object is a monad if it confirms to the 3 monadic laws [1]: Left identity, Right identity and Associativity.

To do this, it must implement two functions. 1. chain (also called 'flatMap', '>>=' in haskell). 2. unit (sometimes called 'of', for instance in js).

Nothing more is needed to understand and implement a monad in any language.

[1] https://wiki.haskell.org/Monad_laws

Re:Show HN: React-Most – Declarative Monadic Reactive State ... by acedinlowball on Wednesday December 07, 2016 @02:47PM (#13125590)
Is that so? Just a note.
Re:Show HN: React-Most – Declarative Monadic Reactive State ... by oyanglulu on Thursday December 08, 2016 @06:11AM (#13129630)
that you can simply flapmap async transform of state to sink