Quick survey: func(..) {..} versus (..) {..}

Aaron J. Seigo aseigo at kde.org
Fri Jul 25 13:58:25 UTC 2014


Quick question time! 

How do you feel this:

=======
myFunction()
{
	let Bar = func() { true; }
	Bar();
}

receiver func(PID, $auth, message) { ... }
=======

compares to this:

=======
myFunction()
{
	let Bar = () { true; }
	Bar();
}

receiver (PID, $auth, message) { ... }
=======


for readability and clarity?


Pros of func():
	* makes it clear that this is a function declaration

Pros of ():
	* no reserved words
	* less typing and reading 

-- 
Aaron J. Seigo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://kde.org/pipermail/funq-devel/attachments/20140725/8a1f6c92/attachment.sig>


More information about the Funq-devel mailing list