4 ms·
Crystal has both classes and structs. Instances of classes are passed by reference, while those of structs are passed by value.
by sigmaml 10y ago
Crystal has both classes and structs. Instances of classes are passed by reference, while those of structs are passed by value.