3 ms·
>I think I’d trust my self to learn Haskell before I ever trust myself to write production C. Hyperbole much? This is just one of "those" things which you only
by rramadass 5y ago
>I think I’d trust my self to learn Haskell before I ever trust myself to write production C.
Hyperbole much? This is just one of "those" things which you only learn when you need it.
In actual usage, myself and most people i know have never used "inline" in C. Macros are the time honoured way of doing such things. There is no mystery to it but just a choice and convention (compared to C++).
- the_only_law 5y ago> Hyperbole much? Nope, I fully believe this. > This is just one of "those" things which you only learn when you need it. And how will you know when you need it when you don’t know it?
- pjmlp 5y agoAfter spending hours trying to figure out why something doesn't work and by chance landing on the above post when searching for inline and C.
- rramadass 5y agoYour argument really does not have a leg to stand on. The concept of "inlining" a function is Programming 101. The mechanism of how to achieve it is what is specific to a language/runtime. You check the syntax/semantics/documentation and figure it out aka problem-solving. Not a big deal and no need to make unwarranted claims/charges against the language as a whole.
- Dylan16807 5y agoThis is not something you can just look up and get a good explanation.
- 1ris 5y ago>and figure it out aka problem-solving. The existence the linked thread suggests this very hard and even capable (and very involved) programmers potentially need mentorship for this.