Skip to content

Duplicate compile/createProgram functions #914

@nguerrera

Description

@nguerrera

We have an exported function compile that is a purely redundant wrapper around createProgam. Should we remove it and just use createProgram everywhere? Or do we prefer the compile name? It feels like we shouldn't be exporting both as it's confusing and I was wondering if there was a difference when noticing that both are used in different places.

https://github.com/microsoft/cadl/blob/c78697eb2502a5f52139c0b6911e146def449e25/packages/compiler/core/program.ts#L965-L971

Metadata

Metadata

Assignees

Labels

design:neededA design request has been raised that needs a proposal

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions