언제까지 (a:number, b:number) => a + b, (a:string, b:string) => a + b, <T>(a: T, b: T) => a + b 를 해줘야 하나고
그냥 대충 눈치껏 (a, b) => a + b 하면 'b 는 a 와 더할 수 있어야 하는 타입이고 a 는 무언가와 더할 수 있는 타입이구나' 하고 추론할 수 있는 분석기가 달린 언어가 필요함
@2chanhaeng@hackers.pub초무 근데 그렇게 추론을 하다가 어디서부터는 "어 그게 맞으니까 거기까지만 추론하고 멈춰" 를 하고 그것과 다른 타입이 오는걸 막아야하는데 그게 가능할까요 아니면 그냥 파이썬 아닌가요
If you have a fediverse account, you can quote this note from your own instance. Search https://yuri.garden/notes/agafeyh7iu on your instance and quote it. (Note that quoting is not supported in Mastodon.)