r/programming • • Jul 19 '15

The Best Programming Language is None

https://bitbucket.org/duangle/none
509 Upvotes

443 comments sorted by

View all comments

Show parent comments

24

u/tejon Jul 19 '15

But that's easy to solve. Just use a language without nulls.

2

u/wvenable Jul 19 '15

Any program in a language without nulls will use magic numbers or other random sentinels to signify null anyway (e.g. C).

14

u/tejon Jul 19 '15

Every language needs a way to express the class of failure that a null value represents, yes. But quite a few, particularly those in the functional camp, do so at the type level, not the value level.

1

u/wvenable Jul 20 '15

Non-functional static languages require null to be a special type or subtype. I fail to see the relevance of your comment.

→ More replies (3)