Comment

Comment by wesselbindt

Ah nice it solves the Liskov violation that the standard library has. In the standard library, dates can be compared with <, and datetimes are dates. But compare a datetime with a date with <, and you get an error. This drove me nuts at work recently.

I wonder what benefits this choice has that outweigh the risks of this behavior.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton