Hello,

I have a stream of events, each event has a type field as string and data.

I'm a Go programmer, and Im using reflection / interfaces{} to parse the events 
into correct type.

How would you do it in Nim. In Go basically I have map of strings and type of 
event, and use reflection to parse into correct type.

Also I do a case on type of event.

Regards

Reply via email to