upmultimedia,
@upmultimedia@mastodon.gamedev.place avatar

oh god 'int* p;' vs 'int *p;' is doing my head in

They both make so much sense but only one can be right

raptor85,
@raptor85@mastodon.gamedev.place avatar

@upmultimedia int* p is how i prefer, int* is the type so when i line everything up pointer types are obvious

kr4ft3r,
@kr4ft3r@mastodon.gamedev.place avatar

@upmultimedia God has made both options valid so we can choose and decide who we are.

upmultimedia,
@upmultimedia@mastodon.gamedev.place avatar

@kr4ft3r God or satan?

auroz,

@upmultimedia int * p;
worst of both worlds

SilbinaryWolf,
@SilbinaryWolf@mastodon.gamedev.place avatar

@upmultimedia zig and go does *int and it’s perfect 😁

ie. var myIntPointer *int
func (myIntPointer *int) {

hyp_x,

@upmultimedia So it's either 'int* a,* b;' or 'int *a, *b;' right?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • provamag3
  • everett
  • cisconetworking
  • Leos
  • normalnudes
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • megavids
  • anitta
  • tester
  • JUstTest
  • lostlight
  • All magazines