Charles Stanhope

Charles Stanhope at

This is a total #NerdWorldProblem, but I really wish more programming languages allowed the underbar _ in the middle of numerical constants. For example, 1_000_000 or 0xFFFF_FFFF.

AJ Jordan, Claes Wallin (韋嘉誠) likes this.

Claes Wallin (韋嘉誠), Claes Wallin (韋嘉誠) shared this.

The only language that I have seen using bars is APL and uses the upper bar to indicate a negative number.

From NARS 2000
-1
¯1

Luis at 2015-10-15T20:21:57Z

Interesting. I wasn't aware of the APL syntax. The only languages I know of that allow underbars are Verilog and Parallax's Spin, and the few languages I've created always include that feature (but those don't count).

Charles Stanhope at 2015-10-15T21:35:33Z

In perl, 2_____________ + _____ 2 = 2

joeyh at 2015-10-16T03:24:28Z

Claes Wallin (韋嘉誠) likes this.