Skip to content

A macro-based API #5

@ChrisRackauckas

Description

@ChrisRackauckas

Hey,
Following up from some JuliaCon comments. The expression-based API is interesting, but I was thinking you should add a macro-based API on top of it. Essentially:

de = @ode_system begin
  x2
  u1 - 1.625
end

can create de=[:(x2[j]),:(u1[j]-1.625)] and it would be more natural than the user defining these themselves. It would also hide the implementation detail of the [j]. The lower level API using arrays of expressions would still exist for more advanced users to programmatically create expressions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions