Re: Idea for 'documenting' unused values

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sat, 24 Jul 2004 10:18:59 +0200, Juergen Luethje <j.lue at gmx.de>
wrote:

>I think I would prefer something like this:
>
>procedure Click_Button(integer self, ignore event, ignore parms)

I would prefer:

procedure Click_Button(integer self, integer, sequence)

ie, if a type is followed immediately by , or ) in the parameter list
then by not specifying any name it is pretty clear you are not going
to reference the parameter.

If block comments are allowed, then

procedure Click_B(integer self, object /*event*/, object /*parms*/)

not only documents what the missing parameters are (should you feel
the need) but also by using object you avoid a tiny bit of type
checking overhead. Without block comments you could code:

procedure Click_B(integer self, 
				object, --event
				object) --parms

Regards,
Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu