我需要一种支持延续的主流语言。 Java永远不会(中断finally
),Scala has deprecated it,ruby默默地deprecating it as well ......
是否有其他主流非FP专用语言支持它们并且不打算弃用它?我实际上需要能够跳回代码。
°是博士论文,而非生产应用程序: - )。
答案 0 :(得分:1)
Python看起来是程序性的,支持函数式编程并在此处实现了延续: http://pypy.readthedocs.org/en/latest/stackless.html#continulets
另请查看asyncio tulip: https://docs.python.org/dev/library/asyncio.html