«« Next » « Previous
«« Next » « Previous

Link Details

Link 84487 thumbnail
User 1 avatar

By rick
via igoro.com
Published: Jun 02 2008 / 16:08

While playing around with C#, I stumbled upon a neat trick that works in all C-based languages. I realized that there is a very clean way to express a multi-clause if statement by composing ternary conditional operators like this.
  • 20
  • 6
  • 1353
  • 605

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.