Git Product home page Git Product logo

Comments (3)

kyren avatar kyren commented on August 19, 2024

The same could be said for pack / unpack, I just find them slightly awkward to use otherwise.

I use those to / from methods constantly, mostly because I get really tired of writing T::from_lua(t, lua) instead of lua.to(t).

I think this is a symptom of the awkward names of to_lua, from_lua, to_lua_multi, and from_lua_multi. Is there possibly a better, short punchy name other than 'from' and 'to' to call these that is less confusing? Is there possibly some other API design that we can use for ToLua / FromLua / ToLuaMulti / FromLuaMulti?

from rlua.

kyren avatar kyren commented on August 19, 2024

This is addressed by PR #32, but I'm not 100% sure I love the result. Now the term "packing" refers to taking any value and packaging it in the universal Any type, and unpacking refers to the opposite, and there's now pack_multi and unpack_multi.

from rlua.

jugglerchris avatar jugglerchris commented on August 19, 2024

I am closing this issue as I think it's been addressed.

from rlua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.