Giter VIP home page Giter VIP logo

Comments (3)

StefanSalewski avatar StefanSalewski commented on August 30, 2024 1

Thank you very much for reporting. I really wonder how this mistake has happened -- unfortunately now other reader has seen that before. In case I should ever touch the book content again, I will surely fix that.

from nimprogrammingbook.

StefanSalewski avatar StefanSalewski commented on August 30, 2024

Well, we used a list of Nim keywords to make it easier to highlight them in the asciidoc source text:

// we can use all of Nim's keywords just as {while} instead of [.key]#while# now!
:addr: pass:q[[.key]#addr#]
:and: pass:q[[.key]#and#]
:as: pass:q[[.key]#as#]
:asm: pass:q[[.key]#asm#]
:bind: pass:q[[.key]#bind#]
:block: pass:q[[.key]#block#]
:blocks: pass:q[[.key]#blocks#]
:break: pass:q[[.key]#break#]
:case: pass:q[[.key]#case#]
:cast: pass:q[[.key]#cast#]
:concept: pass:q[[.key]#concept#]
:concepts: pass:q[[.key]#concepts#]
:const: pass:q[[.key]#const#]
:continue: pass:q[[.key]#continue#]
:converter: pass:q[[.key]#converter#]
:converters: pass:q[[.key]#converters#]
:defer: pass:q[[.defer]#concepts#]
:discard: pass:q[[.key]#discard#]
:distinct: pass:q[[.key]#distinct#]
:div: pass:q[[.key]#div#]

That list format is not too nice, as the keyword repetition can easily introduce errors. Luckily, we now have AI tools like GPT-4, which can help us without detailed instructions:

Please check the following list for errors:

The list looks mostly correct, but there is a minor error. The entry for :defer: is different from the others and appears to have a typo. It is listed as :defer: pass:q[[.defer]#concepts#] instead of the expected format pass:q[[.key]#defer#].

from nimprogrammingbook.

StefanSalewski avatar StefanSalewski commented on August 30, 2024

Fixed.

from nimprogrammingbook.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.