rvirding / erlog

Prolog interpreter in and for Erlang
Apache License 2.0
370 stars 43 forks source link

Argument order in erlog module #51

Closed rvirding closed 9 years ago

rvirding commented 9 years ago

I would like to change the argument order in some of the functions in the erlog module, specifically move the state argument to last:

prove(State, Goal)  ==>  prove(Goal, State)
consult(State, File)  ==>  consult(File, State)
reconsult(State, File)  ==>  reconsult(File, State)
load(State, Mod)  ==>  load(Mod, State)
set_db(State, [Mod, ] Ref)  ==>  set_db([Mod, ] Ref, State)

This is more consistent with how state is handle in arguments in the rest of erlang. It is however not backwards compatible so I was wondering what people would think and react.

rvirding commented 9 years ago

This is implemented in 2e2c2b50938b7602b14cb1cbab4b24bd0698292c.