Giter Club home page Giter Club logo

Comments (5)

let-def avatar let-def commented on May 18, 2024

I have an unstable prototype with this functionality, though far from useful on real world code…
This feature will come, but don't expect it soon :).

from merlin.

let-def avatar let-def commented on May 18, 2024

Just for your information, you can find early support for object completion in "object-support".
No efforts are done at the moment to complete/recover inside class definitions, but assistance is provided when using an object :).

Note that this is experimental code, it may be less stable than current version.

from merlin.

rgrinberg avatar rgrinberg commented on May 18, 2024

I'll give it a try tonight. Too bad I do not come by objects too often in my code :D

from merlin.

let-def avatar let-def commented on May 18, 2024

Well, this is a first step toward a more general type-directed completion: at the moment only completing object methods, but some day we hope to use type of the function being applied to list labels, type of arguments, sort completion suggestions by type, and during matching, suggest constructors of type being matched in patterns.

It could even be possible to create template of matching construction, like prefilling "| Some <> -> <> | None -> <>" when the user types "match x with …" when x as an option type. Probably a bit too much (though it could be used to suggest missing cases), but still interesting feature :).

from merlin.

hcarty avatar hcarty commented on May 18, 2024

Type-directed templates for generating basic code for matching all cases could be very useful, particularly with larger variants!

from merlin.

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.