Skip to main content

New answers tagged

4 votes

What design trade-offs led to the "Norway problem" in YAML, and when are they worthwhile?

All programming languages (in a very broad sense, including markup and configuration languages, domain-specific languages, etc) can be seen as a way for humans to express ideas in a way that a ...
IMSoP's user avatar
  • 2,428
2 votes

What design trade-offs led to the "Norway problem" in YAML, and when are they worthwhile?

The design tradeoff obviously has been to sacrifice explicit declaration to save on its notational cost/overhead (declaring types, marking literals) for the benefit of "ease of use" (...
skreutzer's user avatar
0 votes

What are the downsides of making all strings immutable to improve security and concurrency?

If I'm not mistaken, the upside for the choice in favor of immutable strings is that it saves memory. Instead of having many duplicates, the same copy can be referenced, as long as it's guaranteed ...
skreutzer's user avatar
0 votes

What are the advantages of strings and character arrays being different?

UTF-8 Packing So, what C calls a "character" isn't really a character in the typical Unicode sense. It is an 8-bit integer: a byte. The character 'c' takes one byte to represent, but the ...
apropos's user avatar
  • 1,028
0 votes

What are the advantages of strings and character arrays being different?

While there may be some common features of strings and arrays, there are also some differences. Rather than making strings a subtype of arrays, it would make more sense for them both to be a subtype ...
Barmar's user avatar
  • 1,901

Top 50 recent answers are included