Skip to content

add INLINABLE directive #1630

@stylewarning

Description

@stylewarning

This tells Coalton to save the AST for future inlining. It might be a no-op now but it will be valuable as we try to scale Coalton up to larger code bases.

(inlinable)
(define (f x) ...)

I'm also open to other syntax, like

(inline :always)    ; current INLINR
(inline :maybe)     ; no equivalent, let the compiler decide if it thinks inlining is good
(inline :able)      ; this proposal: INLINABLE

Or something like that.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions