FStarLang / fstar-mode.el

Emacs support for F*
Apache License 2.0
67 stars 17 forks source link

Auto-populate match expressions #60

Closed parno closed 7 years ago

parno commented 7 years ago

Here's a random idea for a fun (but certainly not critical nor particularly F*-specific) feature: In my current code, I have a number of inductive types with a long list of possible constructors. When I later write a match statement for such a type, I have to type in all of the possible constructors (and arguments). Knowing very little about how emacs extensions are written, I imagine it could be possible to have such match statements populated automatically, or even interactively (in case I only want to handle a few cases explicitly).

cpitclaudel commented 7 years ago

Are you thinking of https://github.com/FStarLang/FStar/pull/940 ?

parno commented 7 years ago

Yep, that looks like it. You're way ahead of me :)

cpitclaudel commented 7 years ago

Merging this (duplicate of #58). I'm hoping to tackle this again at some point in the summer.