Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

Minimize the usage of temporary variables #5

Open
tokoro10g opened this issue Jun 17, 2019 · 0 comments
Open

Minimize the usage of temporary variables #5

tokoro10g opened this issue Jun 17, 2019 · 0 comments

Comments

@tokoro10g
Copy link
Owner

Although it is unlikely to cause name conflicts, the usage of temporary variables should be reduced or encapsulated.

For example, these lines should be improved:

String rs = (String) MATLABEngineSingleton.getInstance().evalInMATLAB("import com.mathworks.jmi.tabcompletion.*;" +
"tc___ = TabCompletionImpl();" +
"f___ = tc___.getJSONCompletions(str___, " + Integer.toString(byteIndex) + ");" +
"while ~f___.isDone(); pause(0.01); end;" +
"result___ = f___.get();", "str___", src, "result___");

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant