Re:Tagged unions, or ‘variants’, in C
by jacquesm on Monday June 26, 2017 @08:21AM
(#14636158)
> Let's not try to implement new language features on top of C with macros.
Thank you for that. This happens though, in fact I've done it because the CEO of a company I worked for did not want to use anything but C and the project had a bunch of requirements that were very hard to meet with C. It's surprising how far you can get with that approach but in the end it is simply the wrong way to approach the problem. The right tool for the job is the best way to start any job.
Re:Tagged unions, or ‘variants’, in C
by jacquesm on Monday June 26, 2017 @09:28AM
(#14636603)
Essentially it came down to re-implementing half of BEAM and Erlang OTP in C. I would have much rather used Erlang. Worst case of NIH that I've seen to date.
Thank you for that. This happens though, in fact I've done it because the CEO of a company I worked for did not want to use anything but C and the project had a bunch of requirements that were very hard to meet with C. It's surprising how far you can get with that approach but in the end it is simply the wrong way to approach the problem. The right tool for the job is the best way to start any job.