Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Makes enough sense to me, although I was using Zig years ago.

An inlined function is a function that is not called in the traditional sense and instead its effects are replicated as though the function code had been written at the call site.

With `inline for` and `inline while`, the for loop isn't run in the traditional sense and instead is unrolled as though each instance of the loop had been written separately.

With `inline else`, every possible instance not covered by a `case` is expanded as though it had been written separately.

It's a little weird to C programmers only because C doesn't expand the concept outside of functions.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: