Annotating types and shapes of variables and function return values could greatly enhance the readability and analyzability (eg, linting and compiling) of R code. The syntax could also be used for defining OOP methods.
This is particularly important in the age of agentic programming, where the user's role is mostly that of a reviewer. If LLMs are explicit about their assumptions via annotations, it will help streamline human-in-the-loop development workflows.
Annotating types and shapes of variables and function return values could greatly enhance the readability and analyzability (eg, linting and compiling) of R code. The syntax could also be used for defining OOP methods.
This is particularly important in the age of agentic programming, where the user's role is mostly that of a reviewer. If LLMs are explicit about their assumptions via annotations, it will help streamline human-in-the-loop development workflows.