develooper Front page | perl.perl5.porters | Postings from September 2011

Re: RFC: Second attempt at POSIX::strptime() in core

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
September 2, 2011 00:56
Subject:
Re: RFC: Second attempt at POSIX::strptime() in core
Message ID:
20110902075629.GA3492@klangraum.plasmasturm.org
* Nicholas Clark <nick@ccl4.org> [2011-08-30 18:50]:
> I really don't want to have 2 contradictory implementations of
> strptime() in the core. My hunch is that there will be a way to
> achieve both desires, but I don't have any insight yet on *how*.
> I suspect it comes down to the right interface for adding the
> actually-useful semantics.
>
> We had "fun" for a while when the (newly added)
> Socket::inet_pton() was not compatible with the inet_pton() that
> Socket6 had provided for some years. Commit 3aca805b785501fb fixed
> this. I don't want to repeat such "fun".

The new strptime would be a function. The existing one is a method.
I don’t think this concern applies. And I don’t think it applies at
all to methods on objects too different for Liskov to apply.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

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