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.

Implementing a C-like for loop in Python

15 pointsby soopurmanalmost 2 years ago

3 comments

behnamohalmost 2 years ago
To me this article really shows the power of Lisp more than anything else. I’ve recently started learning about Racket and the freedom it gives you to make your own DSLs on the go with minimal effort is just mind blowing.<p>Whether we actually want people’s custom macros and DSLs in production is another question, tho.
评论 #36567374 未加载
version_fivealmost 2 years ago
I&#x27;m almost certain this was already posted, but cannot find it in the history. I&#x27;ve definitely read it before. It&#x27;s a bit disappointing, he ends up writing a preprocessor that translates his code into python, which doesn&#x27;t really feel like a legitimate claim on implementing c-like loop syntax.<p>The context manager stuff is interesting though.
评论 #36567401 未加载
WaffleIronMakeralmost 2 years ago
(2022)