Hello there!
I'm considering buying the Nim in Action book and I saw it was written in 2017, so my question is: do the concepts and the code still works in new versions of Nim? If no, what should I take care about? What are the major breaking changes in Nim language?
Thank you.
They still work. No major changes happened, except nil strings and nil sequences can't exist any more. They are treated as empty string "" and empty sequences [].
I think the book still works though.
I bought the book I'm July and worked through the whole thing using Nim 1.2.2 with no issues.
If you run into any issues in it, drop it here and we'll help you out!
Hey @JazzPlayer!
Author of Nim in Action here. I have quite recently updated the readme (https://github.com/dom96/nim-in-action-code) on the book's code samples GitHub repo with info on compatibility.
TL;DR: You'll almost exclusively see only deprecation warnings when using Nim 1.0.6 (and any future 1.0.x versions). These turn to errors in Nim 1.2.6. The repo above has updated code which works with 1.2.6.
For now no plans. I think that development in Nim overall is similar enough to how it was in 2017 that a second edition isn't needed yet. We'll see how much things change over the next year with the introduction of ARC/ORC (although even it is largely a drop-in replacement).
Of course, at the end of the day it will be up to the publisher if they think a second edition is worthwhile for them. So if you want it to happen emailing them likely couldn't hurt :)