What is the big difference between:
contract Crowdsale {
MintableToken public token;
uint256 public someInt;
[...]
function Crowdsale (uint256 _constructorArgument){
someInt = _constructorArgument;
token = createTokenContract();
}
function createTokenContract() internal returns (MintableToken)
{
return new MintableToken();
}
and
contract Crowdsale {
MintableToken public token = new MintableToken();
uint256 public someInt = theValueIWouldPassAsConstrArgument;
[...]
function Crowdsale (){
}
The second version is much cleaner imho. I have less code. No need for constructor Arguments...
What is the difference? I would prefer the second version. But maybe I am wrong.