ra’s Twitter Archive
—№ 30,146
⇤ Newest
Tweet
⇠ Newer
Tweet
Older
Tweet
⇢
here’s where it gets interesting. DateTime/Compare is only defined for two DateTimes. This code will always fail.
On twitter.com
2016 Dec 7
Mood
0
…in reply to @ra
the current compiler will emit casts anyway and fail at runtime with a pretty bad error message
Permalink
On twitter.com
❤️ 1
Favorite
2016 Dec 7
Mood
-6
🙁
…in reply to @ra
there’s an opportunity here to fail at compile time with a better error message
Permalink
On twitter.com
❤️ 1
Favorite
2016 Dec 7
Mood
0
…in reply to @ra
heres the catch: because the compiler is functional i can build both compilation paths and swap between them at will. no need to decide now!
Permalink
On twitter.com
❤️ 2
Favorites
2016 Dec 7
Mood
-1
🙁