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.

Show HN: Cheatcode.io, a Swift syntax reference

9 pointsby paulshenover 10 years ago

1 comment

jiaaroover 10 years ago
Searches for unfamiliar special characters should work. Single-character operators and syntactic sugar are one of the harder things to google for, and consequently, a big advantage of a purpose made language reference tool like you&#x27;ve made.<p><i></i>A simple solution:<i></i><p><pre><code> ? -&gt; Optionals ?? -&gt; nil coalescing ! -&gt; Implicitly Unwrapped Optionals &lt;&gt; -&gt; Generics as? -&gt; type casting </code></pre> …and so on<p><i></i>A Better solution:<i></i><p>provide a wikipedia-like disambiguation section for special characters (since `!` could be Implicitly unwrapped optionals, Forced unwrapping, or boolean negation)
评论 #8524588 未加载