[Mono-list] methods without arguments do not need parentheses

Andreas Nahr ClassDevelopment@A-SoftTech.com
Fri, 27 Jun 2003 13:52:26 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C33CB3.57A59DB0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

It's also VB.Net code style. I personally would never write a =
parenthesis for such a function or procedure call. Also that allows you =
to easily change from a function to property without other code changes =
neccesary.

A.Nahr

P.S. I'm not 100% sure but the text does probably mean "method CALLS =
without arguments do not need parentheses", otherwise(method =
declarations) I'm of your opinion.



I'm not sure this " methods without arguments do not need parentheses" =
is a good thing.
It's VB6 style coding, VB.NET doesn't normally allow this.

regards,
Timothy.

------=_NextPart_000_0009_01C33CB3.57A59DB0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial>It's also VB.Net code style. I personally would =
never=20
write a parenthesis for such a function or procedure call. Also that =
allows you=20
to easily change from a function to property without other code changes=20
neccesary.</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>A.Nahr</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>P.S. I'm not 100% sure but the text does=20
probably&nbsp;mean "method CALLS&nbsp;without arguments do not need=20
parentheses", otherwise(method declarations)&nbsp;I'm of your=20
opinion.</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>I'm not sure this " methods without arguments do =
not need=20
parentheses" is a good thing.<BR>It's VB6 style coding, VB.NET doesn't =
normally=20
allow this.<BR><BR>regards,<BR>Timothy.<BR></DIV></FONT></BODY></HTML>

------=_NextPart_000_0009_01C33CB3.57A59DB0--