develooper Front page | perl.perl6.internals | Postings from December 2001

Making conversion operators consistently named

Thread Next
From:
David & Lisa Jacobs
Date:
December 30, 2001 00:42
Subject:
Making conversion operators consistently named
Message ID:
002301c19107$6ee31920$6401a8c0@jacobs
I noticed that for converting numbers to integers and back there are the
named operators "iton" and "ntoi", but for conversions to and from PMCs the
"set" operator is used.

Should we make all conversions have their own ops (e.g., pton, ptoi, ...) or
should we push all conversions into the set operator.  I vote for implicit
conversions in the "set" operator (i.e., moving iton and ntoi into set
operations)

Thoughts,
David




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