opennars / OpenNARS-for-Applications

General reasoning component for applications based on NARS theory.
https://cis.temple.edu/~pwang/NARS-Intro.html
MIT License
91 stars 40 forks source link

[small-fix] Unification of inconsistent argument name in `Inference_EventUpdate` #273

Closed ARCJ137442 closed 2 months ago

ARCJ137442 commented 2 months ago

The second argument's name in function Inference_EventUpdate declared in Inference.h and defined in Inference.c seems inconsistent, which is currentTime in .h and targetTime in .c.

Searching for other calls under Inference_EventUpdate, I found that the second argument passed in (such as here) is not necessarily "current time" but could be something else. (Counterexample: Although Inference_GoalSequenceDeduction and Inference_RevisionAndChoice use name currentTime, all the called places are still passed currentTime)

For such cases, perhaps unifying it to targetTime will make the function signature and definition more consistent and will also reduce confusion for future readers?