Readability question.
Francisco Olarte <[email protected]> Fri, 5 Jun 2026 08:37:56 +0200
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <CA+bJJbz+wYqqmsEgFYHumU7b1ac+m2oEPYf5Vadd5F+AJB9Vxg@mail.gmail.com> |
I've found myself writting the expresion (a and b and combine(a,b)) or a or b is what it does "obvious"? ( I would not declare it idiomatic, as "a and b or c" ) ( context: a,b are tipically optional numbers, or tables, combine is a function which "merges" tables, or something like add/mul/gcd, expresion is used typically in return, local initialization or parameter calculation to a function ( which is lot like local initialization ). I fear maintenance problems ahead if meaning not obvious. Francisco Olarte. -- You received this message because you are subscribed to the Google Groups "lua-l" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/CA%2BbJJbz%2BwYqqmsEgFYHumU7b1ac%2Bm2oEPYf5Vadd5F%2BAJB9Vxg%40mail.gmail.com.