1 comment

[ 0.24 ms ] story [ 9.7 ms ] thread
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.

Try 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