|
|
> In the category of "nobody cares, but I'm going to write about it
> anyway"... A few months back I started building a Haskell to JavaScript
> "compiler". (I say "compiler" since the thing was far too incomplete to
> be described as a *real* compiler; more like a mere compiler back-end.)
> That has lain dormant for a while now, but I've just embarked upon
> writing a Haskell to C# compiler.
An interesting read, so it turns out you are actually quite good at C#
programming then :-) I bet you not many applicants for *any* programming
jobs could manage what you've described here.
> So that's easy enough. Similarly, point #6 says that I can write
>
> distance :: Point -> Int
> distance (Point x y) = sqrt (x*x + y*y)
>
> Again, an obvious C# analogue is
>
> int distance(Point p)
> {
> return p.X*p.X + p.Y*p.Y;
> }
I think you're missing something there :-)
Post a reply to this message
|
|