Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Andrew Kelley
Andrew Kelley
@andrewrk@mastodon.social  ·  activity timestamp 7 hours ago

@mitchellh shadowing and unused variables, to name a couple issues. Plus the implicit `this`. You have to check so many things to be sure that the cut and paste does what you think it does

  • Copy link
  • Flag this post
  • Block
Chris Green
Chris Green
@aachrisg@mastodon.gamedev.place replied  ·  activity timestamp 5 hours ago

@andrewrk @mitchellh The compiler will error out on unused or shadowed variables at least.

  • Copy link
  • Flag this comment
  • Block
LinuxUserGD :godot:
LinuxUserGD :godot:
@HugeGameArtGD@mastodon.gamedev.place replied  ·  activity timestamp 5 hours ago

@aachrisg @andrewrk @mitchellh
-Wunused-variable is a warning in C/C++

  • Copy link
  • Flag this comment
  • Block
Andrew Kelley
Andrew Kelley
@andrewrk@mastodon.social replied  ·  activity timestamp 7 hours ago

@mitchellh oh yeah and I just remembered importing... which has side effects to worry about when you cut+paste between files

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.41 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct