r/Python • • Jun 06 '21

News PEP 661 -- Sentinel Values

https://www.python.org/dev/peps/pep-0661/
220 Upvotes

109 comments sorted by

View all comments

Show parent comment

-27

u/Asdayasman Jun 06 '21

Typescript did it right. "Darn, I sure would like typing in javascript, I know, I'll make a language that compiles down to javascript", not "I know, I'll shoehorn my trash into something that's handled not having it fine for 20 years". The trash causing problems elsewhere in the stdlib is not the stdlib's problem, it is the trash's.

4

u/zurtex Jun 06 '21

The stdlib uses sentinels, why would creating a standard approach to sentinel constructions with a way of creating a nice repr be trash?

Or do you mean something else is trash?

-3

u/funnyflywheel Jun 06 '21

I can confirm that /u/asdayasman be a Rustacean.

1

u/Asdayasman Jun 07 '21

You know I've never actually touched Rust. I've only ever heard glowing love for it though, so either there's something in the water at Mozilla, or I'm missing out.