add note about comptime hash map

This commit is contained in:
Luna 2021-04-04 17:45:14 -03:00
parent 78cc7fab4b
commit 2a801a129b
1 changed files with 4 additions and 1 deletions

View File

@ -643,7 +643,10 @@ pub const Lang = struct {
// in a variable because then that variable must be comptime.
// the drawback of this approach is that our emitted code is basically linear
// because we don't use the hashmap anymore. maybe #5359 can help.
// because we don't use the hashmap anymore.
//
// Attempting to use ComptimeHashMap hits compiler bugs and I'm
// not sure if we can map strings to *types* in it.
if (std.mem.eql(u8, &lowered_command_name, command_string)) {
found = true;