Skip to content

consider number type in the flatten function #14

@tokers

Description

@tokers

Hi, Thibault!

Thanks for your job! This Lua module is very useful.

I'm trying to cooperate this Lua module with lua-resty-redis, so that we can communicate with our Redis servers in these "non-yield" phases.

I find the internal function flatten doesn't handle the number type. In lua-resty-redis, parameters passed to sock:send might be a Lua table with kinds of data type like string, number. Even in the implementations of luasocket, it uses luaL_checklstring, which also can convert number to string.

So maybe we should consider the number type. What's your opinion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions