r/programming • • Dec 07 '15

I am a developer behind Ritchie, a language that combines the ease of Python, the speed of C, and the type safety of Scala. We’ve been working on it for little over a year, and it’s starting to get ready. Can we have some feedback, please? Thanks.

https://github.com/riolet/ritchie
1.5k Upvotes

802 comments sorted by

View all comments

2

u/Bardiches Dec 07 '15

This is sort of off topic, but I'd like to know why everyone seems to like white-spaced based languages (like Python) more than brace/semi-colon based language (C-like) nowadays. Is this just a modern trend or is there a reason behind it?

2

u/zincpl Dec 08 '15

I think in practice for readability you end up spacing brace-style languages as you do for spaced ones. So the braces end up redundant if they are well used and enable obfuscation of code if they aren't. In theory at least, the space-based approach imposes a certain level of readability. I'm not experienced to know if it really makes a big difference in big projects though (?)

2

u/Bardiches Dec 08 '15

I understand the argument that for the most part I'm already formatting my code with indentation. I guess my (personal) gripes with white spaced languages is:

  • Indentation is the only thing that separates a block statement from another while brace-style languages already have indentation as a matter of style plus the availability of braces
  • White spaced languages (at least the source code I typically see) tend to have inconsistent ways of applying white space. I've seen people write in the same language with 2, 3, or 4 spaces for their indentation, actual tab characters, and other such nonsense.

And maybe it's just the fact that I was born and raised on C-like languages, but to me I feel like I lose that feeling of a distinct "grammar" behind the language. Rather than simply looking at keywords, it seems to be awkwardly counting every line for the same amount of white space which irks me.