effekt icon indicating copy to clipboard operation
effekt copied to clipboard

Import with feature flag

Open marzipankaiser opened this issue 9 months ago • 1 comments

Draft imports conditional on feature flags. Current syntax:

import chez/list on chez
  • This DOES NOT check that this is ok (i.e. the imported names are actually only used on this backend).
  • Untested.

marzipankaiser avatar May 07 '24 15:05 marzipankaiser

It seems that this does not actually not import, as Namer still loads it. But removing it in/before Namer will make it fail if used.

marzipankaiser avatar May 07 '24 15:05 marzipankaiser

I don't think there is a reasonably simple way to implement this well right now, so closing for now.

We could revisit this if we ever track backends in namer (i.e.: Those definitions are only there on backend x, this code is only for backend y, ...).

marzipankaiser avatar May 28 '24 08:05 marzipankaiser