-
Zig) ❤️Why no function overloading?코딩Coding/Zig_❤️lang 2022. 8. 2. 21:35728x90
Why no function overloading?
I can't seem to find any rationale for Zig not supporting function overloading, only [mentions from Andrew](https://github.com/ziglang/zig/issues/1251) that Zig does not and probably never will have it. Meanwhile that's one of the worst flaws of C, and one very easily correctable. Have there been any hard counter-arguments given?
Note that I'm not asking about operator overloading which Zig does have (albeit in an inextensible way) but specifically about being able to define ordinary functions with different param types in the same namespace:
fn foo(param: Foo) !Baz {...}
fn foo(param: Bar) !Baz {...}
https://www.reddit.com/r/Zig/comments/we7aqx/why_no_function_overloading/?utm_source=share&utm_medium=ios_app&utm_name=iossmf반응형'코딩Coding > Zig_❤️lang' 카테고리의 다른 글
Unsafe Zig ❤️ is Safer than Unsafe Rust (0) 2022.08.10 미친듯한 속도 Zig❤️로 만든 Bun❤️ - Nomad Coders (0) 2022.08.08 zig - 데이터 자르기 , 오버플로우, 수학 함수 (0) 2022.08.06 How Zig is used at Uber - Motiejus Jakstys (0) 2022.08.05 Zig Support plugin for IntelliJ and CLion version 0.0.7 released (0) 2022.07.29 On Transpilers (Zig/Rust/Go)❤️⭐️ (0) 2022.07.27 yes command in Zig (0) 2022.07.24 Zig translate-c and linking equal best friends (0) 2022.07.19