It would be interesting if there was a programming language that would make log messages and comments interchangable at runtime.

Many times you can follow code because of the comments, but often the log messages also provide a major clue into what is happening. But, you have to choose one or the other. Being able to choose both, where you're effectively setting logging level via syntax, might encourage more readable code.

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!