3 ms·
Julia allows you to be a little closer to the math and use a lot of the math symbols directly. For example, you can write `if 6 ∈ A` (https://docs.julialang.org
by kevmo314 9y ago
Julia allows you to be a little closer to the math and use a lot of the math symbols directly. For example, you can write `if 6 ∈ A` (https://docs.julialang.org/en/release-0.4/stdlib/collections/ https://docs.julialang.org/en/release-0.4/stdlib/collections...), and you can use greek symbols for variable names.
Probably more useful for mathematicians implementing their papers than the other way around, but I find it kind of a nifty language feature and makes it easier to verify that your program matches the math.
- pvdebbe 9y agoJS allows unicode symbols too.
- yorwba 9y agoMost languages with first-class support for Unicode strings do. But usually they don't let you define custom operators. Haskell has this feature. While it is easily abused, it lets you write functions like: a ∈ [] = False a ∈ (x:xs) = a == x || a ∈ xs (some might consider this abuse)