Skip to content

Compiler: Take std::string_view over std::string#2448

Open
Nerixyz wants to merge 1 commit into
luau-lang:masterfrom
Nerixyz:fix/string-view
Open

Compiler: Take std::string_view over std::string#2448
Nerixyz wants to merge 1 commit into
luau-lang:masterfrom
Nerixyz:fix/string-view

Conversation

@Nerixyz

@Nerixyz Nerixyz commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Luau::compile and Luau::compileOrThrow took a const std::string&, but they never cared about it being a std::string. Since the library is compiled with C++ 17, this can take std::string_view to avoid callers needing to create a std::string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant