develooper Front page | perl.perl6.language | Postings from May 2001

Re: properties

Thread Previous | Thread Next
From:
Jonathan Scott Duff
Date:
May 21, 2001 13:45
Subject:
Re: properties
Message ID:
20010521154204.C12603@cbi.tamucc.edu
On Mon, May 21, 2001 at 12:47:15PM -0700, Dave Storrs wrote:
> On Mon, 21 May 2001, Jonathan Scott Duff wrote:
> > Would you also advocate separate declarative syntax for variable
> > properties and value properties?  That's where I think much confusion
> > will be.
> 
> 	Yes, I would.  What that syntax would be, I'm not so
> sure...although the following all have some appear:
> 
> 	my $pi is constant;		# compile time
> 	my $foo is now true;		# run time

[ other examples elided ]

Or how about we just don't use "is" for run-time properties (which
look so much like attributes, that we should just call them that)

	my $pi is constant = 3.14;		# compile time
	my Dog $spot;  $spot.has_fleas(1);	# run time
	return 0.true(1);			# INTEGER(0).true(1) ?
	print 3.1415.pi(1);			# NUMBER(3.1415).pi(1) ?

Granted, we lose the stacking that we had with "is" and properties of
constants look funny ...

-Scott
-- 
Jonathan Scott Duff
duff@cbi.tamucc.edu

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About