3 ms·
Regarding syntax, I think there are too many weird character combinations (:., ==:, etc) like these: ex.head == :. && return union!(sym,[ex]) start = e
by codedokode 3y ago
Regarding syntax, I think there are too many weird character combinations (:., ==:, etc) like these:
ex.head == :. && return union!(sym,[ex])
start = ex.head==:(call) ? 2 : 1
Also I don't like |> combination because it is hard to type. Why not use just single pipe character.
- webshit2 3y agoThe colon is a bit overused (ranges, ternary, quoting), but this would be pretty clear with parentheses and spacing, i.e. ex.head == :(.) and ex.head == :(call). Now you can see it's a comparison against the symbols '.' and 'call'. Kind of like saying C has too many weird character combinations because there's a "--> operator".
- DNF2 3y agoIndeed there are no special operators, :. and ==: etc. They are just :, . and == And macro definition code looks quite different from 'regular' code since it works so much with expressions and symbols.