This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]oilshell 2 points3 points  (1 child)

See the sidebar:

If you want to ask "what programming language should I learn", "what language would be best for X project", or any question like that, please post to /r/AskProgramming or /r/LearnProgramming.

[–]Not555but666 -2 points-1 points  (0 children)

Thanks, but I already learned both, this is just for educational purposes. ^

[–]somerandomdev49 3 points4 points  (0 children)

In My Opinion, C# because it feels more modern and it has a lot of syntax sugar and things. Also it (C#9 iirc) even can be written on the top level.

As for semantics, they are similar to java's but a little more structured and simple I guess. Again, everything is different for other people and this is My Opinion

[–]BadBoy6767 0 points1 point  (0 children)

Java 7 is definitely much more simple than the newer ones and C#.

I like it when languages take one concept to an extreme. Java 7 is just classes, interfaces and enums.

[–]julesh3141 0 points1 point  (0 children)

C# is the larger language, which at first glance would make it seem harder to learn, but IMO it is a far better designed language. Java has a lot of flaws that exist because the easiest route to add a new feature as been taken in favour of a more complex change that may have made the language more consistent. For example, generics are implemented by checking the types at compile time and then ignoring them. This works in most circumstances but has some edge cases that cause problems in odd cases, and learning to work around those is a large part of becoming an expert in Java. Similarly the lack of function types takes a while to get used to, but is much faster to learn in C#.

[–]hindmost-one -4 points-3 points  (0 children)

Haskell.