this post was submitted on 26 Aug 2025
50 points (94.6% liked)

Programmer Humor

26722 readers
151 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] dfyx@lemmy.helios42.de 12 points 1 month ago* (last edited 1 month ago)

Definitely not C#. Wrong syntax for main, wrong syntax for foreach (C# has foreach (var i in someCollection) and what even is this method call syntax with =?

Edit: I dug around the website. It's D. I'm still confused about the method call syntax though. Usually, D uses parentheses like most other C-style languages. Must be some weird syntax where you can call methods like property setters which was useful for this particular code golf challenge.