TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

30 点作者 hoverbear超过 9 年前

3 条评论

to3m超过 9 年前
&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 未加载
asQuirreL超过 9 年前
&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...
AnimalMuppet超过 9 年前
&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 未加载