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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

C experiments in Swift

57 点作者 agp2572超过 10 年前

5 条评论

tambourine_man超过 10 年前
Check this talk, &quot;Swift and C&quot; by Mike Ash:<p><a href="http://vimeo.com/107707576" rel="nofollow">http:&#x2F;&#x2F;vimeo.com&#x2F;107707576</a>
评论 #8548071 未加载
评论 #8548381 未加载
stonewhite超过 10 年前
Everything is great until the flamebait at end.<p>&quot;It is possible to do it all in Swift making it a versatile language unlike Java or Scala&quot;<p>Anybody cares to elaborate on that?
评论 #8548825 未加载
asveikau超过 10 年前
I wonder how longjmp() interacts with ARC. My guess is poorly.
评论 #8548652 未加载
panzi超过 10 年前
I guess using setjmp&#x2F;longjmp to implement something like try-catch in C is something everyone does when they discover this the first time. I did. But I was aware that it isn&#x27;t a good idea, I just wanted to try it. It was some time between 13 and 11 years ago. I guess other computer science students did the same since the 80ies?
评论 #8549228 未加载
sirseal超过 10 年前
&quot;Writing try-catch block using setjmp and longjmp&quot; Great! Now I can have fun with some bad, old programming ideas!