After receiving a request from Martin on the misc@ mailing list to make IPv6 the default version for netcalc, I decided to implement my original idea of dynamically detecting which version IP address the user supplies so that no switch is necessary to discern the two. It was a trivial change but definitely an improvement; and, like Martin remarked, "it's 2019 after all." Despite the fact that IPv4 still traffics most of the Internet with approximately 75% coverage, any encouragement to implement its successor should be the default position.
I am a little surprised that IPv6 wasn't the default being taught at university as late as November 2018. In any case, it's now no longer necessary to use the -6 switch to specify IPv6 in netcalc:
$ netcalc dfa2:984b:2b37:b4a5:594b:fcbd:66be:4faf/111 Address : dfa2:984b:2b37:b4a5:594b:fcbd:66be:4faf CIDR notation : dfa2:984b:2b37:b4a5:594b:fcbd:66be::/111 Start address : dfa2:984b:2b37:b4a5:594b:fcbd:66be:: End address : dfa2:984b:2b37:b4a5:594b:fcbd:66bf:ffff Block size: : 131,072 contiguous usable hosts
And a switch still isn't needed for IPv4 either:
$ netcalc 22.214.171.124/27 Address : 126.96.36.199 CIDR notation : 188.8.131.52/27 Address range : 184.108.40.206 —— 220.127.116.11 Broadcast address : 18.104.22.168 Subnet mask : 255.255.255.224 [0xffffffe0] Address block : 30 contiguous hosts