Therefore I use either of the following two approaches if I need a special value:
- I use
null as a “switched off” value. (As an aside, this approach is relatively well supported by TypeScript.)
- I avoid both
null via one of the techniques described above. This has the upside of being cleaner and the downside of involving more work.
Are you sure you want to delete this link?
The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community