4 ms·
Julia syntax is pretty nice! No multiplication by juxtaposition, element access uses [], and then your code is specific to Julia rather than convertible to lots
by yig 4y ago
Julia syntax is pretty nice! No multiplication by juxtaposition, element access uses [], and then your code is specific to Julia rather than convertible to lots of environments. I would love to see a Julia backend for I Heart LA.
- xeonmc 4y agoWhat do you think of Desmos?
- yig 4y agoI've only used Desmos occasionally, but I like typing math in it. Desmos also supports juxtaposition multiplication.
- forgotpwd16 4y ago>No multiplication by juxtaposition That's possible albeit limited. julia> x=[1,2] 2-element Array{Int64,1}: 1 2 julia> 2x 2-element Array{Int64,1}: 2 4 julia> 2(x+x) 2-element Array{Int64,1}: 4 8 julia> x=2 2 julia> [1,2]x 2-element Array{Int64,1}: 2 4 but, as mentioned, due to element access the inverse (x[1,2]) cannot work. Neither can multiply variables that way.
- yig 4y agoI forgot that Julia can do juxtaposition multiplication with literal prefixes. (My guess is symbols that can't begin an identifier.) Otherwise, the types of the terms must be known at parse-time to correctly interpret, for example, f(x)².