What is the difference between a module and a library?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Daniel Eakins
Citizen
Posts: 99
Joined: Thu Jul 18, 2013 9:14 pm
Location: France

What is the difference between a module and a library?

Post by Daniel Eakins »

Yeah I'm a newbie when it comes to programming terminology :)
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: What is the difference between a module and a library?

Post by veethree »

I may be wrong, But i think a library would be like a module, But designed to work with a specific thing like löve, While a module is something that uses pure lua and works with anything that uses lua.
Let me reiterate, i may be wrong. this is basically a guess.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: What is the difference between a module and a library?

Post by Robin »

Basically, a module is a file you can require(), a library is a collection of code with a single purpose that is distributed together. A library may consist of one module or more than one.
Help us help you: attach a .love.
User avatar
Daniel Eakins
Citizen
Posts: 99
Joined: Thu Jul 18, 2013 9:14 pm
Location: France

Re: What is the difference between a module and a library?

Post by Daniel Eakins »

Thanks!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest