Idea: leave type annotations as comments
- Lenguaje dominante
- JavaScript
- Estrellas
- 33
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I tried out Gear on a little tinkering project over the weekend (https://github.com/bmakuh/quip-mass-exporter/blob/master/index.js#L16) and I found myself continuing to comment out the type annotations so I could just run my script directly in Node rather than having to compile it first. What would you think about the possibility of having Gear parse type annotations in comments? That way it would continue to remain standards-compliant JS while gaining the ability to be type-checkable.
You could do something like require the line to start with triple slashes `///` or something so that you wouldn't have to parse _every_ comment, and you could limit it to only comments directly above a function definition or assignment.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.