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.

Free solo coder – Programming without safety equipment

3 pointsby amozossover 3 years ago

2 comments

fulafelover 3 years ago
At the end chapter:<p>&gt; The best example of explaining what I want is giving an example of what I really bugs me. Go throws an error whenever you have an unused variable.<p>This is really a idiosyncracy of Go, unrelated to safety, and comes I guess from the Rob Pike attributed dogmatic stance &quot;We made a deliberate decision: no warnings. If it&#x27;s worth complaining about, it&#x27;s worth fixing.&quot;
评论 #28471566 未加载
niktarover 3 years ago
Hi. Python has typing. I use it exactly how you describe. First stage of module I develop is usually without types. As soon as I feel some stabilization - I think twice :) then add types and &#x27;mypy&#x27; checks my module. My colleague says this idea came to python from TypeScript. Maybe it&#x27;s true. I don&#x27;t know TypeScript. BTW, Python&#x27;s typing has Union, Optional, Any ... and I don&#x27;t know equivalent type options in Go.