Why do some people use apostrophies in variable names?

Deskin, Bob Bob.Deskin@Cognos.COM
Tue, 11 May 2004 08:46:32 -0400


This is a multi-part message in MIME format.

------_=_NextPart_001_01C43755.FC994AEE
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I checked and IMAGE allows + - * / ? ' # % & @
=20
The PDL default is - _ ' % # $
=20
So they're not the same list but the characters that are in IMAGE but
not in the default PDL set have special meaning in the PowerHouse
language. There are only so many special characters.
=20
PowerHouse names must start with a letter or number, not a special
character.=20
Bob Deskin             =20
Senior Product Manager, Application Development Tools, Cognos Inc.=20
bob.deskin@cognos.com (613) 738-1338 ext 7268 FAX: (613) 727-1178=20
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA=20

	-----Original Message-----
	From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com] On Behalf Of Deskin, Bob
	Sent: May 10, 2004 9:57 PM
	To: Robert Edis; PowerHouse List
	Subject: RE: Why do some people use apostrophies in variable
names?
=09
=09
	The single quote is one of the default special characters
allowed in PowerHouse names. I'd have to check, but it may be allowed in
IMAGE names as well which is why it would have been included. Similarly,
IMAGE allows hyphens but not underscores. Since PowerHouse started on
MPE and IMAGE was big, well, that's the history.
	Bob Deskin             =20
	Product Manager, Application Development Tools=20
	Cognos Inc. 3755 Riverside Drive, Ottawa ON K1G 4K9 CANADA=20
	bob.deskin@cognos.com (613) 738-1338 ext 7268=20

		-----Original Message-----
		From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com]On Behalf Of Robert Edis
		Sent: May 10, 2004 8:09 PM
		To: PowerHouse List
		Subject: Why do some people use apostrophies in variable
names?
	=09
	=09
		I've seen a number of people use apostrophies in field
names with PowerHouse.  WHY????
		=20
		They confuse the heck out of me when trying to visually
parse code as they can be mistaken for the beginning or ending of the
string litteral.
		=20
		What's wrong with using under[score|bar]s?  Much more
readable.
		=20
		Blue

	=20

	       This message may contain privileged and/or confidential
information.  If you have received this e-mail in error or are not the
intended recipient, you may not use, copy, disseminate or distribute it;
do not open any attachments, delete it immediately from your system and
notify the sender promptly by e-mail that you have done so.  Thank you.=20


------_=_NextPart_001_01C43755.FC994AEE
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:eXclaimer =3D=20
"http://www.exclaimer.co.uk"><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D264254212-11052004><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
checked and IMAGE allows + - * / ? ' # % &amp; @</FONT></SPAN></DIV>
<DIV><SPAN class=3D264254212-11052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D264254212-11052004><FONT face=3DArial color=3D#0000ff =
size=3D2>The=20
PDL default is - _ ' % # $</FONT></SPAN></DIV>
<DIV><SPAN class=3D264254212-11052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D264254212-11052004><FONT face=3DArial color=3D#0000ff =
size=3D2>So=20
they're not the same list but the characters that are in IMAGE but not =
in the=20
default PDL set have special meaning in the PowerHouse language. There =
are only=20
so many special characters.</FONT></SPAN></DIV>
<DIV><SPAN class=3D264254212-11052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D264254212-11052004><FONT face=3DArial color=3D#0000ff =

size=3D2>PowerHouse names must start with a letter or number, not a =
special=20
character. </FONT></SPAN></DIV>
<DIV><SPAN class=3D264254212-11052004><!-- Converted from text/rtf =
format -->
<P><SPAN lang=3Den-us><FONT face=3DArial size=3D2>Bob=20
Deskin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
</FONT></SPAN><BR><SPAN lang=3Den-us><FONT face=3DArial size=3D2>Senior =
Product=20
Manager, Application Development Tools, Cognos Inc.</FONT></SPAN> =
<BR><SPAN=20
lang=3Den-us><FONT face=3DArial size=3D2>bob.deskin@cognos.com (613) =
738-1338 ext 7268=20
FAX: (613) 727-1178</FONT></SPAN> <BR><SPAN lang=3Den-us><FONT =
face=3DArial=20
size=3D2>3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9=20
CANADA</FONT></SPAN> </P></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20
  powerh-l-admin@lists.sowder.com =
[mailto:powerh-l-admin@lists.sowder.com] <B>On=20
  Behalf Of </B>Deskin, Bob<BR><B>Sent:</B> May 10, 2004 9:57 =
PM<BR><B>To:</B>=20
  Robert Edis; PowerHouse List<BR><B>Subject:</B> RE: Why do some people =
use=20
  apostrophies in variable names?<BR><BR></FONT></DIV>
  <DIV>
  <DIV><SPAN class=3D628545401-11052004><FONT face=3DArial =
color=3D#0000ff size=3D2>The=20
  single quote is one of the default special characters allowed in =
PowerHouse=20
  names. I'd have to check, but it may be allowed in IMAGE names as well =
which=20
  is why it would have been included. Similarly, IMAGE allows hyphens =
but not=20
  underscores. Since PowerHouse started on MPE and IMAGE was big, well, =
that's=20
  the history.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D628545401-11052004>
  <P><FONT face=3DArial size=3D2>Bob=20
  =
Deskin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
  </FONT><BR><FONT face=3DArial size=3D2>Product Manager</FONT><FONT =
face=3DArial=20
  size=3D2>,</FONT> <FONT face=3DArial size=3D2>Application Development =
Tools</FONT>=20
  <BR><FONT face=3DArial size=3D2>Cognos Inc.</FONT><FONT face=3DArial =
size=3D2></FONT>=20
  <FONT face=3DArial size=3D2>3755 Riverside Drive</FONT><FONT =
face=3DArial=20
  size=3D2>,</FONT> <FONT face=3DArial size=3D2>Ottawa ON K1G 4K9 =
CANADA</FONT>=20
  <BR><FONT face=3DArial size=3D2>bob.deskin@cognos.com</FONT><FONT =
face=3DArial=20
  size=3D2></FONT> <FONT face=3DArial size=3D2>(613) 738-1338 ext</FONT> =
<FONT=20
  face=3DArial size=3D2>7268</FONT> </P></SPAN></DIV>
  <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
    <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
    size=3D2>-----Original Message-----<BR><B>From:</B>=20
    powerh-l-admin@lists.sowder.com=20
    [mailto:powerh-l-admin@lists.sowder.com]<B>On Behalf Of </B>Robert=20
    Edis<BR><B>Sent:</B> May 10, 2004 8:09 PM<BR><B>To:</B> PowerHouse=20
    List<BR><B>Subject:</B> Why do some people use apostrophies in =
variable=20
    names?<BR><BR></FONT></DIV>
    <DIV>I've seen a number of people use apostrophies in field names =
with=20
    PowerHouse.&nbsp; WHY????</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>They confuse the heck out of me when trying to visually parse =
code as=20
    they can be mistaken for the beginning or ending of the string=20
    litteral.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>What's wrong with using under[score|bar]s?&nbsp; Much more=20
    readable.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Blue</DIV></BLOCKQUOTE></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>
  <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT face=3DArial =
size=3D2>This=20
  message may contain privileged and/or confidential information.&nbsp; =
If you=20
  have received this e-mail in error or are not the intended recipient, =
you may=20
  not use, copy, disseminate or distribute it; do not open any =
attachments,=20
  delete it immediately from your system and notify the sender promptly =
by=20
  e-mail that you have done so.&nbsp; Thank you.</FONT>=20
</P></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C43755.FC994AEE--