-
Kizdar net |
Kizdar net |
Кыздар Нет
Best practices for initializing objects? - Nim forum
An aspect of Nim that’s giving me trouble is ensuring that objects get initialized properly. I’ve gotten used to constructors in C++/Swift/TypeScript, which enforce that any instance of object type T has been properly initialized. Whereas in Nim, as in Go and Objective-C, objects get initialized as all zeros/nil and initialization is by convention, using procs like init (var T). I’m ...
Nim forum
Forum użytkowników języka programowania Nim, miejsce do zadawania pytań, dzielenia się wiedzą i dyskusji na temat Nim.
Nim forum
Nim forum ... Nim forum
object message bus for embedded systems - Nim forum
What I want is some Nim-friendly daemon runs as a separate process, and let other programs written in Nim to throw messages between them. The first variant is Mosquitto MQTT server as it goes off the shelf for IoT systems, but it requires very deep (de)serialization of every Nim objects goes over the bus.