python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Is there a way to mark a function as only called/callable from a static constructor?
I have quite a sizeable static constructor for one of my classes, and was wanting to refactor it to encapsulate various bits of the initialization within static functions.
One of the things this stati...
fweaks
Votes: 0
Answers: 2
What is the difference between `state` and `const`?
It seems similar to write:
use Const::Fast;
const $xx, 77;
sub test {
do_something_with( $xx );
}
or
sub test {
state $xx = 77;
do_something_with( $xx );
}
What is the better wa...
Eugen Konkov
Votes: 0
Answers: 3