Future of C#

  • Thread starter Thread starter Jon Harrop
  • Start date Start date
Jon said:
Anyway, I would not say that many programmers know C#. As I said, I don't
know any C# programmers personally (outside Microsoft employees, of
course).
We have many C# programmers, and in the main they have all moved from
other languages and would not go back. You must move in a restricted
world, Jon.

Cheers,

Cliff
 
Enkidu said:
Because they are a good basis to move to GWBasic.

In GWBasic this is a complete program:

10 Print "Hullo World"

This would require up to a dozen lines of declarations and other
unnecessary rubbish in any other language.

Just:

printf "Hullo World"

in F#.
This is a loop in GWBasic:

10 Print "Hullo World"
20 GOTO 10

Succinct, does what you need with a minimum of fuss.

Absolutely. This is an interpreter for a dynamically-typed functional
programming language written in F#:

let rec eval vars = function
| EApply(func, arg) -> begin match eval vars func, eval vars arg with
| VClosure(var, vars, body), arg -> eval ((var, arg) :: vars) body
| _ -> invalid_arg "Attempt to apply a non-function value"
end
| EAdd(e1, e2) -> VInt (int(eval vars e1) + int(eval vars e2))
| EMul(e1, e2) -> VInt (int(eval vars e1) * int(eval vars e2))
| EEqual(e1, e2) -> VBool (eval vars e1 = eval vars e2)
| EIf(p, t, f) -> eval vars (if bool (eval vars p) then t else f)
| EInt i -> VInt i
| ELetRec(var, arg, body, rest) ->
let rec vars = (var, VClosure(arg, vars, body)) :: vars in
eval vars rest
| EVar s -> List.assoc s vars;;
 
And in my estimate 95% of IT people has not even heard about it.

Jon, don't waste your time selling fine craft to pawns... 95% of IT
people are happily writing and refactoring all the time tons of
verbose bug-ridden C-like code... human stubbornness is a fact of
life.
 
Guess what - people don't seem to have a problem writing concurrent
apps in C#.

Guess what - people don't seem to have a problem writing concurrent
apps in C.

besides, which people exactly are we talking about? I'm pretty sure
most codemonkeys out there have never ever started an extra thread by
themselves, as easy as the API makes it. They connect to database and
initiate a GUI, and that's about it... that's your 95% mainstream
target developers...
 
Back
Top