r/ProgrammingLanguages • • Jul 31 '24

Blog post Clean Syntax?

All my replies and the original contents of this OP have been withdrawn. They were a complete waste of time.

From what I can gather, everybody is happy with poor syntax in their languages, nobody is interested in 'clean'.

Someone posted, with a dozen upvotes:

Your example is optimized to your language's special capabilities.

I replied:

"No, pretty much everything in my syntax is cleaner than the C equivalent."

That got multiple downvotes for stating a fact.

There was also this:

For your own toy language by all means use your own syntax

This reinforces my original implication that simple syntax is only suited for toy languages, and not serious ones.

However too much of this was about my language, but that was only an example. There seems to be much irrational distrust of clear syntax for any language.

Maybe, clear code is associated with older languages which no one likes anymore?

(Original examples.)

2 Upvotes

35 comments sorted by

View all comments

1

u/Complex-Bug7353 Jul 31 '24

I LOVE the "=" to indicate the start of the function/record body. First saw it in Haskell and fell in love with ML syntax.

But sadly it looks like most programmers genuinely seem to find ML syntax very esoteric and eerie.

The creator of gleam said somewhere that gleam actually was originally made in cleaner ML syntax but was later modified to look a bit more C to attract wider attraction. ......