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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Strings in YAML – To quote or not to quote (2018)

32 点作者 DMell超过 2 年前

4 条评论

imwillofficial超过 2 年前
For the love of God, save yourself pain. Always quote.
merlincorey超过 2 年前
I&#x27;m surprised in a discussion of when to quote or not quote with YAML the dreaded &quot;yes&quot;, &quot;no&quot;, &quot;true&quot;, &quot;false&quot;, &quot;on&quot;, and &quot;off&quot; booleans didn&#x27;t come up.<p>Quoting the article:<p>&gt; In YAML, you can write a string without quotes, if it doesn&#x27;t have a special meaning.<p>Yeah, about that...
评论 #34511543 未加载
评论 #34513976 未加载
评论 #34512965 未加载
评论 #34512047 未加载
评论 #34511688 未加载
behnamoh超过 2 年前
Is this even a question? I double quote ALL strings. In fact, my C background makes me use &quot; in Python too, even though single quote &#x27; is acceptable. Somehow &quot; feels more __stringy__.
评论 #34512648 未加载
评论 #34512725 未加载
mhio超过 2 年前
Quote strings, always.
评论 #34512729 未加载