carbon-lang icon indicating copy to clipboard operation
carbon-lang copied to clipboard

Switch type literals to use builtin functions.

Open jonmeow opened this issue 1 year ago • 2 comments

Modifies the core package and literal handling to use factory functions for standard type literals.

Updates function/builtin/import.carbon to stop depending on the prelude, since it would list all the impls in the core file. Updates alias/builtins.carbon to be failing (the type values cannot be aliased).

jonmeow avatar May 22 '24 21:05 jonmeow

Depends on #3977

jonmeow avatar May 22 '24 21:05 jonmeow

Looks good. I wonder how much all these extra function calls will slow down @chandlerc's performance benchmark.

Noted this on #toolchain, but I think it's WAI

jonmeow avatar May 22 '24 21:05 jonmeow