New CarFactory(Car);

:=

The fuck is that? Looks like some Cthulhu shit right there.

pseudo-code for variable declaration. Go does not exist. Heil Rust!

You need to study some maths.

If you like that pattern, in C++ what about a static member function?

I show bitches my padded structs and get sluts wet instead. Maths if for pussies.

From the char to my doubles baby. All the way don.

the car on the left is a variable
the car on the right is a package

package car has a function New() that returns a car.Car

lolnogenerics

I understand.

class Car
{
Car(int a, int b, int c, int d)
{};

static Car* New(int a, int b, int c, int d);
};


Car* Car::New(int a, int b, int c, int d)
{
return new Car(a,b,c,d);
}


you don't need a car object to exist to call Car::New The only difference I can see is slight syntax, and who is responsible for deleting the car object.

>returning a pointer
disgusting

The only padded thing is in your pants