News for hackers. Stuff that matters.
Re:Lemon – An embeddable, lightweight programming language i... by shortstuffsushi on Wednesday October 25, 2017 @10:02AM (#15550177)
I'm seeing in the source that the author prefers

type

methodName(args...)

Is this a common C-ism? I'm not familiar with this code style.

Re:Lemon – An embeddable, lightweight programming language i... by mratzloff on Wednesday October 25, 2017 @10:10AM (#15550236)
Re:Lemon – An embeddable, lightweight programming language i... by dfox on Wednesday October 25, 2017 @11:28AM (#15550909)
GNU style is mostly about the funny and ugly indentation of braces.

Return type on separate line is shared by many other coding styles.

Re:Lemon – An embeddable, lightweight programming language i... by mratzloff on Wednesday October 25, 2017 @04:40PM (#15554050)
Sure. It’s an illustrative example that it’s a common C style.
Re:Lemon – An embeddable, lightweight programming language i... by nachexnachex on Wednesday October 25, 2017 @10:13AM (#15550263)
It is. It allows to search for function declarations with the regex '^[^( ]+[(]' (or similar) -- while more common in the past, many have adopted it and keep using it.

Personally I've come to find it nice to read, particularly when you're returning complex, long types.