atoponce,
@atoponce@fosstodon.org avatar

Here's a fun way to comment your C# source code: start it with "https://"

Yup. A URL.

The C# compiler sees "https:" as an unused go-to label and "//" starts a comment for the rest of the line

https://this.is.totally.a.valid.comment.in.c#

oblomov,
@oblomov@sociale.network avatar

@atoponce no complaints about labels defined multiple times?

dneary,
@dneary@mathstodon.xyz avatar

@atoponce Does this work with C or C++?

oblomov,
@oblomov@sociale.network avatar

@dneary @atoponce it works with C++ and modern C (ancient C did not have // for comments)

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