3 ms·
Julia does this with *. IMO it weirds people out
by b_tterc_p 8y ago
Julia does this with *.
IMO it weirds people out
- enriquto 8y ago> Julia does this with * A much saner choice. I would prefer a space, still.
- emmelaich 8y agoWith stardot or just star? Yeah either would be a little weird. I'm asking partly because Ocaml uses stardot for floating point multiplication.
- ddragon 8y agoJust * "a" * "b" == "ab" "a" ^ 3 == "aaa" Though the dot version is actually almost possible because of a special syntax in Julia called broadcasting, which applies any function element-wise. "a" .* ["a", "b", "c"] == ["aa", "ab", "ac"] ["a", "b", "c"] .* "a" == ["aa", "ba", "ca"] ("a" * ["a", "b", "c"] would raise an error)