Re: Byte Order (Endians) Library

2020-05-08 Thread dataPulverizer
> I don't think your code is standard though, usually void are implicit in the > return type, also var are used for in-place mutation, not pointers. Thanks for letting me know, I haven't written a lot of Nim so I'm still learning. I didn't realise that using var means in-place mutation, I've

Re: Byte Order (Endians) Library

2020-05-08 Thread mratsim
History. I don't think your code is standard though, usually void are implicit in the return type, also `var` are used for in-place mutation, not pointers. And it's probably much more likely to read from an immutable value (often an int or byte array) to a mutable value (often a byte array or

Byte Order (Endians) Library

2020-05-08 Thread dataPulverizer
Is there a reason why the endians ([https://nim-lang.org/docs/endians.html](https://nim-lang.org/docs/endians.html)) library is written as it is rather than providing a familiar and more user friendly interface? I've written something more conventional and IMO easier to use ...