develooper Front page | perl.perl6.porters | Postings from April 2000

Re: Topaz 0.11 is out .. and in CVS (Finally!)

From:
Chip Salzenberg
Date:
April 29, 2000 22:20
Subject:
Re: Topaz 0.11 is out .. and in CVS (Finally!)
Message ID:
20000429222032.G1044@perlsupport.com
According to John Tobey:
> I think that I will learn more about Perl 5 from reading Topaz's
> header files than I did from reading Perl 5's header files.

It could happen.  C++ encourages putting a lot more info in headers.

Re: Consistent naming:

> -            void clear_array()			{ set_array_size(0); }
> -    virtual void set_array_size(size_t n)	{ array_only(); }
> +            void array_clear()			{ array_set_size(0); }
> +    virtual void array_set_size(size_t n)	{ array_only(); }
>      virtual void array_assign_simple(size_t n, Scalar_p *vec);
>  
>      // Hash-specific:
> -    virtual void clear_hash();
> -    virtual void set_hash_capacity(size_t n);
> +    virtual void hash_clear();
> +    virtual void hash_set_capacity(size_t n);
>      virtual void hash_assign_simple(size_t n, Scalar_p *vec);

I've pondered that.  I'm trying to maintain some degree of 'verb_noun'
naming when appropriate.  But visual consistency may be more valuable.
-- 
Chip Salzenberg              - a.k.a. -              <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
    but he stepped in a wormhole and had to go in early."  // MST3K



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