Code Monkey home page Code Monkey logo

Comments (2)

straight-shoota avatar straight-shoota commented on July 20, 2024

@Sija citing #430 (comment) here for clarity:

As type declarations are often used as part of DSLs and within accessor macros, I see no reliable way to mark them as unused assignments.

I'm not sure I get the issue you're seeing. For all I can tell, the use of type declarations in DSLs and accessor macros should be pretty much the same as with assignments. Ameba is able to handle getter foo = 1, right? Why is getter foo : Int32 problematic?

from ameba.

Sija avatar Sija commented on July 20, 2024

For all I can tell, the use of type declarations in DSLs and accessor macros should be pretty much the same as with assignments.

Ameba itself allows/uses them within the properties macro.
Perhaps it would be possible to exclude 'em somehow... just thinking out loud here.

Ameba is able to handle getter foo = 1, right? Why is getter foo : Int32 problematic?

Good question. I believe it's due to some custom logic I've missed in the PR.

from ameba.

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.