Hacker News new | ask | show | jobs
by tapirl 2190 days 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?

1 comments

It would not surprise me to learn that the parser has special rules for the token "map".
Yes, 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.
lisp