[Jprogramming] Functional solutions to side-effect dependencies

Tracy Harms kaleidic at gmail.com
Sat Nov 29 21:01:11 HKT 2008


Viktor Cerovski <viktor.cerovski at gmail.com> wrote:

> [I]n fact, monads are exactly
> the solution to the problem of how to introduce stateful
> functions (or, in other words, side-effects) into a pure-functional
> language.
>

Taking tacit expression as a pure-functional portion of the J
language, how can this solution be effected?  For some weeks I've been
trying, unsuccessfully, to envision J equivalents to Haskell's monads
and arrows.

It may be that because J is a multi-paradigm language there is no
possibility of a parallel, but I don't find that idea plausible. The
limited functional purity of J may make such solutions unattractive or
awkward, but since there is a rather clear-cut range within which
functional purity is maintained, my guess is that the technique you
applaud can be accomplished in J.

--
Tracy


More information about the Programming mailing list