SksOp / neuralflow-poc

https://neuralflow.devflex.co.in/
0 stars 1 forks source link

Change the emplemtation of Dict #20

Open SksOp opened 8 months ago

SksOp commented 8 months ago

In python the Dict can have all these as their key

  1. Strings: A common choice for keys due to their immutability and ease of use.
  2. Numbers: Both integers and floating-point numbers can be used as keys.
  3. Tuples: Can be used as long as they contain only immutable types themselves (strings, numbers, and other tuples).
  4. Booleans: True and False can be used as keys.
  5. None: Can be used as a key.

In our typewriter package we have allowed only string and number to be the type of key ( as js only allow these types).

We need to change this to align with how it is done in python.

linear[bot] commented 8 months ago

NF-37 Change the emplemtation of Dict