Theodore Freeman
Theodore Freeman
Many people are discussing how to solve the forward slash escaping problem, which shows that this is a common demand. For example: https://github.com/mpx/lua-cjson/pull/57 https://github.com/mpx/lua-cjson/issues/66 Existing solutions are changed from escaping...
# Why submit this PR? https://github.com/xjdrew/lua-zset/pull/16#issuecomment-2123816639 # 参数名使用 `options` 的原因 这个参数表示一组选项,而不是单独的一个选项。使用复数形式更加准确地描述了它的性质。 同时也可以提高代码的可读性,比如: ```lua for _, option in pairs(options) do end local option = options[xxx] ``` 没有使用 `opts`,因为 `options` 本身不是很长,没必要缩写。虽然很多库都使用 opts...