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

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 27 | next ›
Discussion Overview
groupperl6-porters @
postedApr 29, '00 at 7:04a
activeMay 6, '00 at 1:20a



site design / logo © 2019 Grokbase