Closed alfa33333 closed 1 year ago
Hello, this is not a typo. This is a "well-known" syntax for Lua, and is often used as a "named parameter" pattern. See https://www.lua.org/pil/5.html and https://www.lua.org/pil/5.3.html
This article (https://leafo.net/guides/dsl-in-lua.html) is a great resource on the topic.
Awesome also uses this pattern, especially in its widget system, so writing widget feels like a declarative framework, a la QML (https://en.wikipedia.org/wiki/QML)
Customized example was missing parenthesis