18.1 C
New York
Saturday, September 13, 2025

sdl – C vs C++ for SDL3, from Go


Context:
I have to refactor my sport engine and sport methods from floor up; thus, that is one of the best second to start out eager about swapping to a greater programming language for the job.

Proper now, I’m using the Go programming language. But, the one actual Go software that I take advantage of is the package deal administration system so swapping to a different language shouldn’t be an enormous deal.

Why I take advantage of Go?

I take advantage of Go for 2 main causes:

  1. Bundle Administration: I can simply use go mod init to setup initiatives and go get to import (and use) exterior libraries with out too many issues.
  2. Go-routines: The concurrency mannequin (i.e., go-routines) are implausible and make it fairly simple to run parallel capabilities.
  3. Interfaces: The embedding and loosely-coupled interfaces allow rather a lot in relation to generalization.

Query:
Between C and C++, which one is one of the best for me two change to? My goal is to work together with SDL3.

Professionals and Cons:
C is straightforward and I already know one thing about it. However it might get exhausting.
C++ has extra options however I have no idea sufficient about it to make even a easy good day world program. I do not use lessons rather a lot and I’m not a fan of that function.

I’m as much as studying no matter is finest, received any options?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles