What's the weirdest design decision in your programming language of choice?

@urusan
In the order of weirdness:
1. In Lua, starting comment with `--` is the most off-putting thing in Lua

2. In Guile Scheme, the single quote turns into backtick if we want to unquote. They could have made the ' to be aware of , instead of using a completely different character

3. In Python, loading modules once and no way to natively and without side effects reload modules

4. In R, making the () necessary when piping, especially in lambda function (\(){})() as it is neater to have \(){}

Follow

@Mehrad
I've wondered where Lua got the `--` comment thing from - maybe Ada or SQL?
@urusan

@Parienve @Mehrad Oops, right after I posted that, I realized that you mentioned that in addition to Ada.

It probably came from SQL since it's seemingly the oldest language with this comment style, though depending on when comments were added to SQL it might have originated from Ada.

This page speculates it was Ada: gavilan.edu/csis/languages/com

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.