... | ... | @@ -169,7 +169,7 @@ where `keaconfig_test_dhcp4_all_keys.json` is in the same directory and contains |
|
|
|
|
|
## Constructors
|
|
|
|
|
|
Golang has no special syntax or convention for a constructor. The constructors are not mandatory in Golang, and they are similar to the C++ factory functions rather than constructors. A constructor can have an arbitrary name, although it typically includes the `New` word by convention. The use of constructors is optional in Stork. However, the developers should take into consideration the pros and cons of using or not using the constructors for each case they are working on.
|
|
|
Golang has no special syntax or convention for constructors. They are similar to the C++ factory functions rather than C++ constructors. A constructor can have an arbitrary name, although it typically includes the `New` word by convention. The use of constructors is optional in Stork. However, the developers should take into consideration the pros and cons of using or not using the constructors for each case they are working on.
|
|
|
|
|
|
The arguments in favor of using constructors:
|
|
|
|
... | ... | |