On Thu, Jan 10, 2002 at 02:31:24PM -0600, David M. Lloyd wrote: > On Thu, 10 Jan 2002, Steve Fink wrote: > > > The naming of things is getting a bit messy. I'd like to propose a > > convention that I use in my work. It's compatible with the last draft > > of PDD 7 that I could find: > > http://www.mail-archive.com/perl6-internals%40perl.org/msg03422.html > > I agree, we should definitly be sticking to a standard. I think, though, > that putting the * in the typedefs for structs might be a little > confusing; at least, on all the systems I've worked on that do this, I've > been confused. But that might just be me. :-)
Well, I'm not doing it to avoid typing the '*'. I'm doing it to mark the type as referring to an abstract data type called a 'Stack', gosh darn it, and if I pass a Stack into a subroutine then I don't want the receiver to get a member-wise copy of my Stack's guts -- that wouldn't be *my* Stack. It would be a new gibbering beast that happened to share pointers and other internal organs with my Stack in ways that would doom them both to half-lives of pain, discomfort, and arguments over whose turn it was to use the liver that night and who got stuck with the spleen. <cough> Or at least that's the way I think of it. Gotta go now.