Code Monkey home page Code Monkey logo

Comments (3)

flyx avatar flyx commented on July 24, 2024

There are simple examples on the main page, but the order of the examples got scrambled for some reason. Search for Loading Nim objects from YAML. The simple Nim example is still more involved than the simple Python example, the reason being that NimYAML requires a target type to load the YAML into (since Nim is a statically typed language). A dict with arbitrarily typed entries is not possible here. Java's SnakeYAML can do Map<String, Object> but this is also not possible here because Nim is not hardcore tailored to OOP and doesn't have a general Object type.

The examples on the main page are generated from source code (so that the test suite can ensure that they actually do what they're supposed to be doing). The code doing that originally ordered them correctly, but something has changed since then so that it doesn't do that anymore. I need to investigate this.

from nimyaml.

flyx avatar flyx commented on July 24, 2024

I updated the webdocs and moved them on a new server. You may need to refresh and clear your DNS cache to see the updated version.

Simple examples are again on top now. You still can't escape from having to use static types. Please report back if this helps you, and if not, what problems you have with it.

from nimyaml.

flyx avatar flyx commented on July 24, 2024

Closing for lack of feedback.

from nimyaml.

Related Issues (20)

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.