Is there any reason I'm missing as to why not many languages let a programmer create a table of constant information at compile time?

Something like:

public const Dictionary<string,decimal> SOME_DICT = new Dictionary<string,decimal>( 
{"A", 1.9}, 
{"B",2.3}, 
{"C", 4.4444} );

Probably because some things require dynamic memory allocation and type-checking.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.