node-rules icon indicating copy to clipboard operation
node-rules copied to clipboard

Store functions as objects containing string representation and function object

Open moshewe opened this issue 9 years ago • 1 comments

The mixing of function definitions in the JSON specification of rules and such is a real pain, also for debugging. I can imagine a "debug" running mode where the functions are eval-ed from their string representations every time so yield meaningful errors and such.

I'm just starting to work with this great library, and that just made me cringe... Is this a change you are willing to consider?

moshewe avatar Feb 15 '16 17:02 moshewe

@moshewe , I have written a function for reading and storing these rules. I wish to integrate the functions. Any idea how I can proceed?

bassdeveloper avatar Apr 03 '17 11:04 bassdeveloper

Thanks for the feedback. Please consider raising a PR incase you have any improvements in this direction. Closing since this seems to be open for a very long time.

mithunsatheesh avatar Mar 05 '23 10:03 mithunsatheesh