News for hackers. Stuff that matters.
Re:One Year of Nushell by wwright on Monday August 24, 2020 @10:41PM (#24267694)
At work we have a program that uses the exit code to encode three enums. Each digit of the decimal representation of the exit code corresponds to one of these enums.

It’s some of the most cursed code I’ve ever worked with.

(God bless anyone who ever used this program and got a set fault or sigint or sighup and therefore a bizarre result.)

Re:One Year of Nushell by samatman on Monday August 24, 2020 @11:57PM (#24268027)
I was horrified by your post, because I've had to deal with load-bearing exit codes.

Then, I read the part about each digit of the decimal representation.

Now I may need to lie down for a spell.

Re:One Year of Nushell by etaioinshrdlu on Monday August 24, 2020 @10:46PM (#24267714)
That is a very bad design. Especially since you have only one byte to work with.

What is the decimal range of values used?

Re:One Year of Nushell by wwright on Tuesday August 25, 2020 @07:21AM (#24270172)
I think 11 to 200, but it’s not surjective