Code Monkey home page Code Monkey logo

Comments (2)

Benjamin-Dobell avatar Benjamin-Dobell commented on September 25, 2024 1

This mostly comes down to there being a bit of an issue with the doc annotations playing a dual role:

  1. Typing
  2. Documentation

Concise fun type definitions don't provide a means to document/describe the parameters. Granted, this is already an issue with the existing @overload syntax.

There's also #2 which is different, but also related to the function typing syntax not being as expressive as it ought to be.

Anyway, this is certainly a valid issue. I'll just have to give some thought as to what's the best way to address all the potential use cases.

from intellij-luanalysis.

pouwelsjochem avatar pouwelsjochem commented on September 25, 2024

So fun type definition can't possibly be used to document/describe the parameters? Or is it not implemented as of now?

While not viable for all complex function where you'd maybe want to use comments per parameter, I do think such notation really lowers the threshold to 'type' everything.

Well, if you ever want to discuss any potential approach I'm always free to think along. I have a codebase 200K+ lines of code of Lua in my game and recently decided to transition to a more typed solution such as your plugin. I might be even able to help implement some of the stuff if I think it will benefit in my own situation.

from intellij-luanalysis.

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.