V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
pythonee
V2EX  ›  iDev

你们觉得 swift 的值类型和引用类型别扭吗

  •  
  •   pythonee · 2015-11-12 13:46:37 +08:00 · 2884 次点击
    这是一个创建于 3097 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2015-11-17 09:13:24 +08:00
    dorentus
        1
    dorentus  
       2015-11-12 14:20:59 +08:00 via iPhone
    不觉得
    caileijuve
        2
    caileijuve  
       2015-11-12 16:50:36 +08:00
    不觉得,习惯了觉得很方便
    banxi1988
        3
    banxi1988  
       2015-11-14 00:18:09 +08:00
    简单来说,这是有意设计成这样的,看了说明之后我觉得很好啊。值类型单纯健壮些。
    而且 Swift 这么好用,以前使用引用类型造成的一点点纠结,现在慢慢治好了。
    如果下面的 Session 没有看过的建议多看次:
    1 ) Protocol-Oriented Programming in Swift https://developer.apple.com/videos/play/wwdc2015-408/ 特别强烈推荐
    2 ) Building Better Apps with Value Types in Swift https://developer.apple.com/videos/play/wwdc2015-414/ 1 )中强烈推荐
    nori
        4
    nori  
       2015-11-17 09:13:24 +08:00
    概念上跟其他语言有什么区别吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2492 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:22 · PVG 19:22 · LAX 04:22 · JFK 07:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.