Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming intention for table.splice? #16

Open
coodoo opened this issue Apr 2, 2016 · 1 comment
Open

Naming intention for table.splice? #16

coodoo opened this issue Apr 2, 2016 · 1 comment

Comments

@coodoo
Copy link

coodoo commented Apr 2, 2016

In most languages the intention of splice(start, len) is to extract the designated items out of the original data structure, but seems it's not the case for table.splice, it's actually doing exactly the opposite, just wondering is this by design? If so, care to explain the reasons behind? Thanks.

@soumith
Copy link
Member

soumith commented Apr 3, 2016

looks like it was introduced by @clementfarabet in 381970f but I really doubt anyone remembers the context.

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

No branches or pull requests

2 participants