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?

Reply via email to