TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

C Right-Left Rule

6 pointsby allendingover 4 years ago

2 comments

Doxinover 4 years ago
One of the best quality of life fixes D has over C (and by extensions C++) is getting rid of this complexity. In D you can simply go right-to-left. So instead of having<p><pre><code> char *str[10]; </code></pre> you&#x27;d have<p><pre><code> char*[10] str; </code></pre> which when read right-to-left trivially results in &quot;str is a array 10 of pointer to char&quot;
lupireover 4 years ago
More readable version with ascok art, as the spiral rule:<p><a href="http:&#x2F;&#x2F;c-faq.com&#x2F;decl&#x2F;spiral.anderson.html" rel="nofollow">http:&#x2F;&#x2F;c-faq.com&#x2F;decl&#x2F;spiral.anderson.html</a>