DEV Community

Discussion on: 5 reasons you should learn Lua

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

Very nice idea! Segway: what is the dotnotation in this function declaration function love.load().

Thread Thread
 
jwoertink profile image
Jeremy Woertink

Lua has 2 different type of notations. Since it's not an object oriented language, you can think of . like a class method, and : like an instance method. So love.load() vs love:load(). Lua basically determines what self is based on how you call the functions (if that makes sense)..