slepher / erlando Goto Github PK
View Code? Open in Web Editor NEWThis project forked from rabbitmq/erlando
Erlando
Home Page: https://www.rabbitmq.com/
This project forked from rabbitmq/erlando
Erlando
Home Page: https://www.rabbitmq.com/
do_traverse(Monad, F, Node, ChildrenLens) ->
%% do form
%% do([Monad ||
%% NNode <- F(pre, Node),
%% NNNode <- fold_children(Monad, F, NNode, ChildrenLens),
%% F(post, NNNode)
%% ]).
fold_children use NNode and lens of Node
when Node changes such as from {op, Line, Op, L, R} to {call, Line, Op, [L, R]}
it will use the wrong lens and cause crash
lens should be generated by node
not pre-generated
it's a little complicated
I will do this later.
for now, do not change node structure in pre traverse, use post traverse instead
current type pattern match interface is
-erlando_type({error_m, [{ok, '_'}, {error, '_'}]}).
will be convert to such pattern match in typeclass module
type({ok, _}) ->
error_m;
type({error, _}) ->
error_m;
so these features are not supported
there should have a better interface for type instance pattern match
Could you provide an example how to combine a state_t and error_t monad, please?
What I'm looking for is that my function can return either {ok, {Result, NewState}}
, {ok NewState}
or {error, Error}
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.