V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
AlpacaCode

go2 会影响 go 之前的架构嘛

  •  
  •   AlpacaCode · Oct 16, 2020 · 3619 views
    This topic created in 2018 days ago, the information mentioned may be changed or developed.

    比如他的泛型支持和错误处理解决方法,会不会像 py2 和 py3 一样照成两种语言的样子

    17 replies    2020-10-16 22:14:23 +08:00
    richzhu
        1
    richzhu  
       Oct 16, 2020
    啊哈哈~ 最好是会影响,虽然难受但是可以一次性把痛点都解决
    不过根据 go 社区的德性,看起来是不会影响的~~~
    AlpacaCode
        2
    AlpacaCode  
    OP
       Oct 16, 2020
    @richzhu 感觉变动了项目上会有很大影响。虽然俗话说的好,能跑起来就行
    renmu123
        3
    renmu123  
       Oct 16, 2020 via Android
    我猜是不可能的,py 在前,之后很少有语言会这样了,从 2 到 3 可是差不多迁移了 10 年,go 这种公司主导更不会出现这种情况了
    AlpacaCode
        4
    AlpacaCode  
    OP
       Oct 16, 2020
    @renmu123 看了一下 go2 更新的草案,错误处理和泛型支持也算是两大块内容了吧。。不知道之前的框架会做怎样的处理
    aloxaf
        5
    aloxaf  
       Oct 16, 2020
    py2 和 py3 是因为互不兼容才会分裂。go 和 go2 难道也不兼容吗……
    AlpacaCode
        6
    AlpacaCode  
    OP
       Oct 16, 2020
    @aloxaf 我是觉得加入泛型以后会有一些结构上的变动
    keepeye
        7
    keepeye  
       Oct 16, 2020
    应该向下兼容的
    rrfeng
        8
    rrfeng  
       Oct 16, 2020
    我觉得一定会向前兼容,不用担心。
    x940727
        9
    x940727  
       Oct 16, 2020
    在哪看 Go2 的更新啊,https://blog.golang.org/go2-here-we-come 是这个吗?
    monkeyWie
        10
    monkeyWie  
       Oct 16, 2020
    错误处理定稿了吗
    cheng6563
        11
    cheng6563  
       Oct 16, 2020 via Android
    连个括号都舍不得变一下,肯定不会变了
    AlpacaCode
        12
    AlpacaCode  
    OP
       Oct 16, 2020
    @x940727 github 上面有 你可以搜一下
    janxin
        13
    janxin  
       Oct 16, 2020
    不会
    AlpacaCode
        14
    AlpacaCode  
    OP
       Oct 16, 2020
    @cheng6563 啊哈哈哈哈哈有被笑到
    AlpacaCode
        15
    AlpacaCode  
    OP
       Oct 16, 2020
    @monkeyWie 看样子还没有
    FutherAll
        16
    FutherAll  
       Oct 16, 2020 via iPhone
    变动只是 api 变动吧,改改代码适配新的 api 就可以了吧🐶
    natsukage
        17
    natsukage  
       Oct 16, 2020 via iPhone
    点进来之前没仔细看还以为说 surface,果然不能熬夜太久
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   855 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 21:54 · PVG 05:54 · LAX 14:54 · JFK 17:54
    ♥ Do have faith in what you're doing.