NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Is it really a problem? (Score:2)
I agree, allowing tags to be mutable is silly, but has that actually been a problem for you in practice. I don't recall ever actually modifying the contents of stuff under a tag, and you can always revert it.
As far as the checkout thing goes, that'd be annoying, but I've never done that either. When I want to make a tag I always operate directly on the repo URI:
svn cp http://.../svn/Foo/trunk [...] http://.../svn/Foo/tags/2.0 [...]Yeah, distributed VCS is probably better in lots of ways, but Subversion works well enou
Re: (Score:2)
I agree. The subversion tagging concept is perfectly acceptable because you can always revert them (using "svn revert" or "svn copy -r"), and changing the contents of the tags is unlikely. There are three similar issues with Perl:
Re:Is it really a problem? (Score:1)
But what’s the failure mode? More than likely, if you do happen to change a constant, you will probably have mysterious bugs that do not obviously point to the culprit. It can potentially take a huge amount of time to track down the issue. The rationale is the same as with using
strict, only more polarised. Therefore, for constants, I have gotten into the habit of doing the following:Trying to mutate
$ANSWERor assign to it will throw a “Modification of a read-only value attempted” error.You know now what you speak of. The problem is that if I write a Foo::Bar subclass of the CPAN module Foo and I add a private method
_bazfor my purposes, then if Foo is updated and itself ships a_bazmethod that was not there before, then Foo::Bar objects will break because Foo methods expect to getFoo::_bazwhen they call$self->_baz, but they getFoo::Bar::_bazinstead. This has nothing to do with enforced privacy. I would be happy to let anyone call myFoo::Bar::_bazif they were actually looking for it. So I want to be able to say “only dispatch here if it’s me asking for it or someone else comes looking for it.” Therefore, I have gotten into the habit of replacing the following:with the following:
Reply to This
Parent