Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java写起来太难看了,为啥不用haskell或者scala? #1

Open
iodone opened this issue Nov 13, 2020 · 18 comments
Open

java写起来太难看了,为啥不用haskell或者scala? #1

iodone opened this issue Nov 13, 2020 · 18 comments

Comments

@iodone
Copy link

iodone commented Nov 13, 2020

如题

@niltok
Copy link
Owner

niltok commented Nov 13, 2020

因为这个系列目前还是科普为主,用更大众的语言能让更多的人能理解这些内容。况且Haskell和Scala写这些内容的文章已经很多了,并不是很需要多写一篇。
至于Java,虽然不喜欢但是确实是能用的东西。

@CWKSC
Copy link

CWKSC commented Dec 3, 2020

我可以來寫個 C# 版嗎? d(d'∀')

學到不少,謝謝大大~

@niltok
Copy link
Owner

niltok commented Dec 3, 2020

@CWKSC 好啊好啊,开项目了以后我可以把链接加到目录里面

@tusikalanse
Copy link

请问我可以改写个c++版吗(可能会因为c++语言特性在代码实现上加一些内容但是不会改原意的)

@niltok
Copy link
Owner

niltok commented Dec 14, 2020

@tusikalanse 欢迎欢迎,改一些内容没问题的,我看rs版改了不少,同时建议加QQ群或TG群聊聊

@hzqd
Copy link

hzqd commented Feb 21, 2021

我想知道会不会有 Golang 版?(笑)【因为 Go 似乎没有 sum type】

@kokoro-aya
Copy link

我可以写个Kotlin版本的嘛(顺便翻译成英文这样就可以给其他同学安利了(雾

@niltok
Copy link
Owner

niltok commented Aug 4, 2021

@kokoro-aya 好啊好啊 kt挺好的

@niltok
Copy link
Owner

niltok commented Aug 4, 2021

不过其实英语相关资料蛮多的 我这里很多东西也是看英语资料学了然后自己再写的

@kokoro-aya
Copy link

这样呀,那翻译成法语好了,毕竟法语关于FP的资料真的挺少的,很学术性的倒是有,科普向的真心少(bushi
嘛,这边之前不怎么接触FP,感觉用OO向的语言来表达出这些概念的文章还是很有用的啦,对于接触过OO的人来说这样表达一些抽象的概念可能比较好懂一些?
以及感觉就算是英语的资料把各种概念整合在一起的可能也不多吧,我之前看的用OO语言写Monad的教程似乎都没讲到HKT的

@kokoro-aya
Copy link

说来之后还可能需要请教一下,主要是检查一下kt的实现是否准确什么的(刚接触FP不久,感觉还是不是很有把握)

@qianxi0410
Copy link

我想知道会不会有 Golang 版?(笑)【因为 Go 似乎没有 sum type】

@hzqd

type SchoolPerson interface {
	featrue()
}

type Student struct {
	name string
	id   int
}

func (s Student) featrue() {}

type Teacher struct {
	name   string
	office string
}

func (t Teacher) featrue() {}

这个不知道算不算

@niltok
Copy link
Owner

niltok commented Dec 17, 2021

这样呀,那翻译成法语好了,毕竟法语关于FP的资料真的挺少的,很学术性的倒是有,科普向的真心少(bushi 嘛,这边之前不怎么接触FP,感觉用OO向的语言来表达出这些概念的文章还是很有用的啦,对于接触过OO的人来说这样表达一些抽象的概念可能比较好懂一些? 以及感觉就算是英语的资料把各种概念整合在一起的可能也不多吧,我之前看的用OO语言写Monad的教程似乎都没讲到HKT的

@kokoro-aya

Java 的 HKT 模拟我当时没找到中文资料,是从一篇英语文章学到的操作

@hzqd
Copy link

hzqd commented Dec 25, 2021

我可以写个Kotlin版本的嘛(顺便翻译成英文这样就可以给其他同学安利了(雾

不知您的 Kotlin 版本写得怎么样了?我还想早日拜读呢!

@LighghtEeloo
Copy link

才发现有这个 issue ……看来用 OCaml 写这个真是异教徒了x

准备把改写版定位成 gateway drug to OCaml(虽然听起来也用处不大就是了

@penguin-wwy
Copy link

献丑了,准备用py写一个版本
https://github.com/penguin-wwy/magic-in-ten-mins-py

@niltok
Copy link
Owner

niltok commented Mar 11, 2022

@penguin-wwy 添加到收录列表里了,感谢您的贡献

@asukaminato0721
Copy link

https://github.com/wuyudi/magic-in-ten-mins-ts

改写中,用了 literate-ts 所以没有 ts 文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants