became_fish ,
@became_fish@jorts.horse avatar

there would have been better times to have a discussion about creating a C++ style guide at work than right after i spent three weeks writing a ton of rust

became_fish OP ,
@became_fish@jorts.horse avatar

me: we shouldn't use -1 to mean an invalid index, we should make it an std::optional<size_t> instead
coworker who's been writing c++ for thirty years: that's like four extra bytes though

became_fish OP ,
@became_fish@jorts.horse avatar

i found myself using the pattern

namespace A {  
 namespace AInternals { ... }  
 using AInternals::PublicClass;  
}  

at work because i've gotten used to it. my coworkers tell me this is anti-pattern

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines