Skip to content

Extend code generation #165

@rafaqz

Description

@rafaqz

The more I look at the code here the more it seems most of the package could be generated along with the existing generation of the low level api functions.

We can add user facing method generators with ast transformations in the generator - 70% of geos_functions.jl could be defined like this without changes.

We could even generate keyword argument versions and geointerface methods using pretty simple transformation rules, and do name changes to e.g. match GeoInterface.jl function names, using a lookup table.

The types could mostly be defined in an @eval loop.

@visr you have mentioned code generation here at times, was this what you meant?

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