Skip to content

Static functions as modules #4

@pbloem

Description

@pbloem

Consider the following way of describing modules:

@Module(name="Adder", description="Adds two numbers together")
public class Adder
{
    @Main
    public static add(
        @In(name="first") int first,
        @In(name="second") int second)
    {
        return first + second;
    }
}

This is a concise way of writing small modules, but it's tricky to implement. This should be thought out carefully before implementation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions