Name: Anonymous 2011-12-05 10:39
Seriously asking, for the people that like python, why do you like it, and what do you normally use it for?
class Redundancy (object):
def __init__ (self):
self.______haxxed_____ = True
def getHaxxed (self):
return self.______haxxed_____
class Beauty
attr_accessor :sex
def initialize
@sex = true
end
end
class anymore, so it can't be used the same way.haxxed=True.
package Classy {
use Moose;
has 'style', is => 'ro', default => sub { 1 };
}
my $foo = Classy->new();
say $foo->style; # 1
public class Enterprise {
private boolean haxxed;
public Enterprise() {
setHaxxed(true);
}
public boolean isHaxxed() {
return this.haxxed;
}
public void setHaxxed(boolean haxxed) {
this.haxxed = haxxed;
}
}