Breaking news: void exists

While reading Expert F# 4.0, 4th ed. by Don Syme, Adam Granicz, Antonio Cisternino I realized it is about time to get rid of void no-value, well, something.

It simply does not fit in any way, no matter what magic I would use — like creating object for ?Void type, despite the fact it could have value as optional type, but it would mean no-value as Void type.

Thus Void is regular type as any other, void is a single possible value of it. Even if it hurts performance (the least of my problems) it makes language more consistent.

Tagged

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: