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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Note on Syntax

23 点作者 fogus超过 13 年前

2 条评论

75c84fb8超过 13 年前
I'm not an expert on programming language design, so I was hoping someone can help me understand. When people talk about syntax, do they mean how bits of text are strung together to make programs; kind of from a down-and-dirty, implementation-level POV? As opposed to the more high-level thinking of the kinds of things you can get done in the language?<p>So for example, assignment of a value to a variable is a high-level "thing you get done" in a language, which isn't syntax, whereas using := versus = for assignment is a matter of syntax? Do I have the right idea?
jayferd超过 13 年前
++<p>Syntax is extremely important for scripting languages, especially those you expect to use with a REPL. Programmers tend to choose languages that (a) are good enough for the job, and (b) are pleasant to use.