Comment

Comment by tsomctl

Well, we're getting closer to F#. Still waiting on discriminated unions and expression blocks. (Yes, I know, discriminated unions in F# are just implemented in the class hierarchy. But it's awfully nice syntactic sugar.)

> Point p = new (3, 5);

At first glance, not impressive, since you could just do:

> var p = new Point(3,5);

However, it would clean up code like:

> graphics.DrawRectangle(RedBrush, new(3, 5, 2, 2))

parent tsomctl 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton