Open mbalmer opened 8 years ago
:+1:
:+1:
Ok, I will slowly start with this. Do you want to see pull requests or should I commit directly? I will more or less follow this style: http://cvsweb.netbsd.org/bsdweb.cgi/src/share/misc/style?rev=HEAD&content-type=text/x-cvsweb-markup, but I will take it as a collection of hints, not the law ;)
I'm comfortable with both options.
I find the current source code formatting a bit hard on the eyes, it is very dense, which imo makes the code harder to read and thus harder to maintain.
In the luapgsql (https://github.com/arcapos/luapgsql/blob/master/luapgsql.c) I use a convention called KNF ("Kernel Normal Form") that comes from the BSDs and which has the goal to make the code easily readable.
Would it make sense to adopt such a more readable formatting for PL/Lua as well? I am inclined to say yes, and I would volunteer to do the initial work, but only if other agree, of course.