A pair of Rust kernel modules
A pair of Rust kernel modules
Posted Sep 14, 2022 16:15 UTC (Wed) by khim (subscriber, #9252)In reply to: A pair of Rust kernel modules by milesrout
Parent article: A pair of Rust kernel modules
> In C, the declaration and use syntax are almost exactly the same. Once you know one, you know the other.
And in LISP it's even more uniform thus easier, right? Everyone uses lisp, right? No? Not everyone? But why?
Think about it.
> It's almost exactly the same as calling it.If you forget about the fact that for function which returns function (like already mentioned void (*signal(int, void (*)(int)))(int)) it doesn't work. That function have two arguments yet ends with (int)
somehow. And about the fact that standalone variable declared as int x[3];
has entirely different type from argument of function declared in the same fashion. And about bazillion other similar quirks.
Yes, C is simple if you ignore details. Which invariably bites you in the ass later. While Rust makes sure you wouldn't forget about details.
Yes, it's different strategy, but it works much better for the large or huge projects where hundreds or thousands people work on the same codebase.