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.

Heteroglot: Project Euler problem #16 in Pascal, #17 in Inform 7

30 pointsby hoverbearover 9 years ago

3 comments

to3mover 9 years ago
&quot;How on earth did C win out over this?&quot; - here&#x27;s some guy&#x27;s take on, if not exactly this question, matters that may be related: <a href="https:&#x2F;&#x2F;www.lysator.liu.se&#x2F;c&#x2F;bwk-on-pascal.html" rel="nofollow">https:&#x2F;&#x2F;www.lysator.liu.se&#x2F;c&#x2F;bwk-on-pascal.html</a><p>My own memory is similar - Pascal was just generally annoying to use, in various little ways, that added up over time. On the face of it, it seems like it should be a lot better than C, but in practice... it just wasn&#x27;t.
评论 #10898881 未加载
评论 #10898955 未加载
评论 #10901236 未加载
asQuirreLover 9 years ago
&gt; Cool. I’m glad to see Pascal has adopted Rust’s approach of putting the type last, so you can actually see at a glance what the variable names are.<p>I&#x27;m guessing (hoping) this is irony...
AnimalMuppetover 9 years ago
&gt; I have a hard time even thinking of it as a systems language, since systems languages tend to be full of punctuation, whereas Pascal makes pretty heavy use of keywords.<p>Judging whether it&#x27;s a systems language by keywords vs punctuations? Seriously?<p>&gt; does this seriously predate C and share the same problem space?<p>Some people thought it could share the same problem space, but it was primarily intended to be a teaching language. It turned out that it wasn&#x27;t as suited for real work as some people thought.<p>&gt; Granted, I don’t know enough about Pascal from one toy program to fairly compare it to C. Kind of curious what the story is, though.<p>The story is, when you quit having toy problems, Pascal&#x27;s limitations got in your way much more than C&#x27;s limitations did.
评论 #10899827 未加载
评论 #10901197 未加载