探戈未来与D1停产 [英] Tango future versus D1 discontinuation

查看:81
本文介绍了探戈未来与D1停产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

知道D1 will be discontinued effective December 31, 2012,考虑到官方发行版在D1下,继续使用Tango仍然值得吗?

Knowing that D1 will be discontinued effective December 31, 2012, is it still worth it to continue using Tango given that the official distribution is under D1?

推荐答案

如果您要谈论的是,一旦对D1的官方支持消失了,继续使用Tango与D1是否值得?作为继续使用D1是否值得.缺少D1对dmd的支持确实不会对D1的Tango是否仍然可用产生任何影响.真正的问题是,尽管缺乏支持,您是否仍要坚持使用D1,还是要迁移到D2.

If you're talking about whether it's worth continuing to use Tango with D1 once official support for D1 goes away, then I think that that's pretty much the same answer as whether it's worth continuing to use D1. The lack of D1 support for dmd really shouldn't have any effect on whether Tango for D1 is still usable. The real question is whether you want to stick with D1 in spite of its lack of support or whether you want to move to D2.

现在,假设您要移至D2 ...

Now, assuming that you want to move to D2...

就个人而言,我建议您首先考虑Phobos,因为它是标准库,尽管它仍有改进的余地,但它比D1更好 .它也得到了社区的明确支持,并且还在继续增长.新项目最有可能使用Phobos,并且只有从D1移植后才可能使用Tango.

Personally, I'd advise looking to Phobos first and foremost, because it's the standard library, and while it still has room to improve, it's far better than it was for D1. It also has definite community support and continues to grow. New projects are most likely to be using Phobos and are only likely to be using Tango if they were ported from D1.

但是,没有理由不愿意在D2中使用Tango,尤其是从D1移植代码时.最近有一个 Tango叉,该叉最近已移植到D2.就像任何第三方库一样,如果需要,您可以选择在代码中使用它.如果您愿意,甚至可以将其与Phobos一起使用(与D1不同),尽管它们的样式非常不同.究竟主要使用Phobos还是Tango,完全取决于您.

However, there's no reason why you can't use Tango in D2 if you want to - especially if you're porting code from D1. There is a fork of Tango which was recently ported to D2. And just like any 3rd party library, you can choose to use it in your code if you want to. You can even use it alongside Phobos if you want to (unlike with D1), though their styles are very different. It's really up to you whether you use Phobos or Tango primarily.

如果您担心从长远来看将不支持Tango,尤其是在官方版本仍仅支持D1的情况下,我认为没有人能真正预测到这一点.我希望它会实现,但是如果它真的不能进一步发展,也​​不会感到惊讶,这仅仅是因为大多数D2用户将使用Phobos. Phobos 将得到维护,因为它是标准库.谁知道Tango会发生什么.但是D2分支目前仍在维护中,这可能是一个社区将会发展(无论是D1探戈用户迁移到D2还是D2用户决定使用它),它将继续保持强大,良好支持的库.在这一点上,还没有办法知道.

If your concern is that Tango will not be supported in the long run - especially with the official version still being D1-only - I don't think that anyone can really predict that. I expect that it will be, but it wouldn't surprise me if it doesn't really evolve much further, simply because the majority of D2 users are going to be using Phobos. Phobos will be maintained, because it's the standard library. Who knows what will happen with Tango. But the D2 fork is currently maintained, and it could be that a community will grow around that (be it D1 Tango users moving to D2 or D2 users deciding that they want to use it), and it'll continue to be a strong, well-supported library. There's just no way to know at this point.

因此,Phobos是您最好的选择,但是如果您愿意,确实没有理由不使用Tango.

So, Phobos is your best bet, but there's really no reason not to use Tango if you want to.

这篇关于探戈未来与D1停产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆