简介
根据所有参数的类型选择泛型函数的方法,支持多重分派和参数化的方法定义。
使用这门语言的成员
参与的讨论
asyncio.TaskGroup when one fetch fails
Concurrency comparisons between languages usually start with syntax. I'd start with what the calculation needs when something…
round(2.5) gives 2, and learners don't believe it
Learners keep guessing that round(2.5) is 3, and both languages I reach for say 2. Python gives the integer 2, Julia gives 2.…
A loop that allocated a column at a time
Slicing in Julia copies, which I knew and then forgot inside a loop. Take a function that walks the columns of a matrix and d…
Ambiguous Julia methods and f(2, 3)
Two Julia methods, f(x::Integer, y::Number) and f(x::Number, y::Integer). Each runs a different algorithm, chosen for whichev…