AndThen icon indicating copy to clipboard operation
AndThen copied to clipboard

Lua 5.2 compatibility

Open ghost opened this issue 10 years ago • 0 comments

In Lua 5.2 "Modules are not expected to set global variables." It would be nice if AndThen would adhere to that.

$ lua5.2 -e 'print(require("AndThen"))'
true

Modules are expected to be used like this:

local promise = require("AndThen")
promise().and_then(...)

ghost avatar Nov 18 '15 19:11 ghost