Maybe. We would like to make `.` overloadable. In that discussion the idea of reclaiming some bitwise operators has come up. I think lookup is a better use of $ than bitxor. For example a$b could be "low level" field access, and a.b could be overloaded by dicts and other types to do other kinds of lookup.
On Wed, Apr 1, 2015 at 5:32 PM, Jerry Xiong <[email protected]> wrote: > I sometimes miss the concise way to fetch the element in a dictionary, such > as dict$key in R and dict.key in Matlab. In Julia, I have to use dict["key"] > or dict[:key]. Although they are logically identical, the concise way has > both typing and visual conveniences. I can regard dict.key1 and dict.key2 as > two independent variables ( equal to dict_key1 and dict_key2) sometimes > while regard them as fields of a structure othertimes. I tryed to overload > macro @~ to do it, so I can use dict~key instead. However, the precedence of > ~ is not high enough, such as dict~key+1 is equal to dict~(key+1) rather > than (dict~key)+1. I wonder is there any plan to support such concise way of > key fetching, or keep a high-precedence operator (e.g. dict§key, dict..key, > dict!!key ) for custom macro defination in the future Julia?
