It should have been called _Overload or something similar, since it's not really a generic.
How to kill your company in one week?
In C23 you can use the attribute [[nodiscard]] on functions to mark that the result from function shouldn't be discarded. I think there is also a [[reproducible]] attribute for saying a function doesn't do side effects.
I think he means that the C API is stack based?
What is nano lacking in power?
One can always use Home and End in that case.
Well, IIRC even in the K&R book, a book which many C programmers admire for it's excellent documentation and prose, and rightly so, there is a specific section mentioning that C's declaration syntax has been castigated.…
The declaration syntax and the lack of a proper module/namespacing system is also a mistake, but perhaps not as big as the way arrays decays into pointers. Implicit conversions I suppose could also be classified as a…
Citizens have a huge amount of power within the government, being able to vote in elections and pursue ballot initiatives. How is that not a democracy?
Only one I could think of is posix_spawn[0], although it has different constraints than fork()/exec()... [0]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/p...
Ada 2012 has expression functions declare function f (i: Integer) returns Integer is ( i * 2 ); x : Integer; begin x := f(21); end;
Another stab at a "typed Lua" is this paper by one of the original authors of Lua: https://doi.org/10.1016/j.scico.2020.102393 The paper describes the language Pallene
Maybe something similar to Troff eqn language? Or the formula language in Libreoffice Math? Both of these are a bit more approachable than LaTeX's math mode, IMO.
You can hack it with the \m[<color>] escape in groff: \m[blue]int\m[] x Of course, you would use some kind of pre-processor to make this less of a PITA, but it's not inconceivable.
isn't y = x + x++; undefined behavior in C, because of a lack of a sequence point? If that's true, then it makes sense for no C programmer to know what happens.. I think to fix it you would have to go like: y = x; y = y…
Sadly I don’t know how to futz about with traps, I just haven’t gotten to that point yet in my use of groff. First I would point you to the manpage, but, we all know that manpages are a mess, so it might not be there. I…
NB: I'm new to HN, so please excuse any formatting errors in this comment. Well, I've been using groff on and off for a few years, I can give it a shot. Most "macros" as in TeX, are invoked by having the first character…
It should have been called _Overload or something similar, since it's not really a generic.
How to kill your company in one week?
In C23 you can use the attribute [[nodiscard]] on functions to mark that the result from function shouldn't be discarded. I think there is also a [[reproducible]] attribute for saying a function doesn't do side effects.
I think he means that the C API is stack based?
What is nano lacking in power?
One can always use Home and End in that case.
Well, IIRC even in the K&R book, a book which many C programmers admire for it's excellent documentation and prose, and rightly so, there is a specific section mentioning that C's declaration syntax has been castigated.…
The declaration syntax and the lack of a proper module/namespacing system is also a mistake, but perhaps not as big as the way arrays decays into pointers. Implicit conversions I suppose could also be classified as a…
Citizens have a huge amount of power within the government, being able to vote in elections and pursue ballot initiatives. How is that not a democracy?
Only one I could think of is posix_spawn[0], although it has different constraints than fork()/exec()... [0]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/p...
Ada 2012 has expression functions declare function f (i: Integer) returns Integer is ( i * 2 ); x : Integer; begin x := f(21); end;
Another stab at a "typed Lua" is this paper by one of the original authors of Lua: https://doi.org/10.1016/j.scico.2020.102393 The paper describes the language Pallene
Maybe something similar to Troff eqn language? Or the formula language in Libreoffice Math? Both of these are a bit more approachable than LaTeX's math mode, IMO.
You can hack it with the \m[<color>] escape in groff: \m[blue]int\m[] x Of course, you would use some kind of pre-processor to make this less of a PITA, but it's not inconceivable.
isn't y = x + x++; undefined behavior in C, because of a lack of a sequence point? If that's true, then it makes sense for no C programmer to know what happens.. I think to fix it you would have to go like: y = x; y = y…
Sadly I don’t know how to futz about with traps, I just haven’t gotten to that point yet in my use of groff. First I would point you to the manpage, but, we all know that manpages are a mess, so it might not be there. I…
NB: I'm new to HN, so please excuse any formatting errors in this comment. Well, I've been using groff on and off for a few years, I can give it a shot. Most "macros" as in TeX, are invoked by having the first character…