Skip to content

Conversation

@juzipeek
Copy link

@juzipeek juzipeek commented Nov 18, 2020

What this PR does / why we need it:

It is more reasonable to use self variables than to use _M or m directly.

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible?

@juzipeek juzipeek changed the title should use not upvalue fix log index function Nov 18, 2020
@juzipeek juzipeek changed the title fix log index function fix: log index function should use self instead of m or _M Nov 18, 2020
-- cache the lazily generated method in our
-- module table
_M[cmd] = method
self[cmd] = method
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

-- cache the lazily generated method in our
-- module table
m[cmd] = method
self[cmd] = method
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The m and self are the same in this situation.

@spacewander
Copy link
Member

I don't think we need to waste too much time on such "readable" since everyone has her difference standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants