0

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} );

Edited by pseudorandom21: n/a

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by thines01
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.