While I'm learning go I decided as an exercise to implement go versions of a few programming greatest hits. This one is Bjarne Stroustrup's simple and elegant interactive calculator, from The C++ Programming Language. I've made as few changes as possible other than conforming to go conventions.
1 comment
[ 2.3 ms ] story [ 18.0 ms ] threadTry it out at https://repl.it/@glxxyz/BrokenVirtualRoot
The C++ original is here if you want to compare them side by side: http://www.stroustrup.com/dc.c