azonenberg,
@azonenberg@ioc.exchange avatar

How did I just find out today that C++ supports digit separators in integer literals since C++ '14?

thezoq2,
@thezoq2@mastodon.social avatar

@azonenberg oh that's good to know, I wonder why they chose ' and not _ like a lot of languages that have the feature

azonenberg,
@azonenberg@ioc.exchange avatar

@thezoq2 Yeah I wish they used _ which is what SystemVerilog uses. ' is a bit strange.

FantasmitaAsex,
@FantasmitaAsex@todon.eu avatar

@azonenberg another thing that C++ copy from DLang 😂

azonenberg,
@azonenberg@ioc.exchange avatar

@FantasmitaAsex I've been using this feature in SystemVerilog for years and always assumed C++ couldn't do it. TIL.

jens,
@jens@social.finkhaeuser.de avatar

@azonenberg Eh, because C++ was a moving target for a good decade or two, and now it seems to be slowing down again.

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