4 ms·
Comparing it with the builtin hashtable: * the custom one: hashtable.Table(string, int) * the builtin one: map[string]int The syntax forms are quite differen
by tapirl 6y ago
Comparing it with the builtin hashtable:
* the custom one: hashtable.Table(string, int)
* the builtin one: map[string]int
The syntax forms are quite different. Wouldn't it be better to make them consistent? Is it so hard to achieve this?
- jeremyjh 6y agoIt would not surprise me to learn that the parser has special rules for the token "map".
- tapirl 6y agoYes, the fact that "map" is a keyword and "Table" is not really makes a trouble for parser. But I think we should think towards the road. There should be always a solution.
- mpfundstein 6y agolisp