Giter Site home page Giter Site logo

Comments (3)

japaric avatar japaric commented on August 22, 2024 2

This no longer applies. v0.4.x is using attributes on top of plain (rustfmt-able) Rust code.

from rtic.

japaric avatar japaric commented on August 22, 2024 1

One of the reasons I chose the current syntax is that it resembles other Rust-like syntax commonly found on macros. In fact we are directly using syn tokentree parser.

I do agree that TOML syntax looks better in most cases ... with the exception of the static variable syntax: Right now is equal to Rust's but it doesn't directly map to a TOML construct. I suppose we could adapt it to match TOML; maybe something like this:

[resource.ON]
type = "bool"
value = "false" # needs to be string to be able to use constructors like "Foo::new()"

but it's more verbose. Also we cannot mix Rust syntax and TOML syntax because the TOML parser is not going to like it.

I, personally, don't feel strongly about changing it at the moment.

from rtic.

jonas-schievink avatar jonas-schievink commented on August 22, 2024

I don't feel very strongly about the syntax it uses, but it's probably a good idea to use something similar to what other crates use for their macro-languages.

from rtic.

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.