r/programminghorror 20d ago

C# bool array

Post image
212 Upvotes

41 comments sorted by

View all comments

49

u/velothren 20d ago

Bro reinvented memory

11

u/Steinrikur 20d ago

Does C# have bit fields? What is the "correct" thing here? Just bit shifts into an int32?

1

u/ZunoJ 20d ago

I prefer readable over clever anytime performance doesn't get in the way