You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Comparsion sheet between F-Sharp and other languages #698
I really like the idea here, but I think of all languages OCaml users are going to have the least trouble with F# syntax. I think JS/Java/C# -> F# syntax pages would be more useful to do first, because those languages have bigger differences from F# and probably hundreds of times as many users as OCaml.
Plus, much of the features in F# are not available in C# and others.
It might be senseful to compare the basic syntax like in this comparison,
plus adding the features of a functional language like F-Sharp.
In the case of Java and C# is it probably very interesting, since F# provides the huge plurality of the features in these languages, plus a huge amount of functional programming techniques.
So, this can result in a huge page which shows the variety in F-Sharp?
Well, since OCaml is similar on the surface, while it contains some differences in details.
So, if you like to decide between both languages - where to look?
The verbose syntax is very similar to OCaml. OCaml doesn't allow operator overloading, doesn't use <> for types, has type punning on record construction for starters.
Well, one thing to mention could be also feature wise, so missing type providers here and missing first class modules there, etc. This is helpful to do ports.
I think one single source of truth is beneficial here.
Activity
theprash commentedon Oct 12, 2017
I really like the idea here, but I think of all languages OCaml users are going to have the least trouble with F# syntax. I think JS/Java/C# -> F# syntax pages would be more useful to do first, because those languages have bigger differences from F# and probably hundreds of times as many users as OCaml.
ShalokShalom commentedon Oct 12, 2017
You can do all of these languages one by one.
ShalokShalom commentedon Oct 12, 2017
Plus, much of the features in F# are not available in C# and others.
It might be senseful to compare the basic syntax like in this comparison,
plus adding the features of a functional language like F-Sharp.
In the case of Java and C# is it probably very interesting, since F# provides the huge plurality of the features in these languages, plus a huge amount of functional programming techniques.
So, this can result in a huge page which shows the variety in F-Sharp?
theprash commentedon Oct 12, 2017
Here's another example for reference: JS -> Elm
ShalokShalom commentedon Oct 12, 2017
Thanks a lot.
It looks really clean, while I guess this counts for the OCaml and Reason comparison as well, once compiled without the whole Reason page around it.
And it is possible to reuse the OCaml content in it.
What I like to reimplement here is the content of the comparison itself.
Elm and Javascript are interesting languages to compare the syntax.
Elmish is also interesting to me.
s952163 commentedon Oct 30, 2017
I don't see the point for OCAML specifically, for some other popular languages this might make sense.
ShalokShalom commentedon Nov 9, 2017
Well, since OCaml is similar on the surface, while it contains some differences in details.
So, if you like to decide between both languages - where to look?
[-]Comparsion sheet between F-Sharp and OCaml[/-][+]Comparsion sheet between F-Sharp and other languages[/+]voronoipotato commentedon Jun 10, 2019
https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/verbose-syntax
The verbose syntax is very similar to OCaml. OCaml doesn't allow operator overloading, doesn't use <> for types, has type punning on record construction for starters.
ShalokShalom commentedon Jun 11, 2019
Well, one thing to mention could be also feature wise, so missing type providers here and missing first class modules there, etc. This is helpful to do ports.
I think one single source of truth is beneficial here.
One thing that is popular today: https://github.com/gothinkster/realworld
teichert commentedon Apr 8, 2022
It's more than one page and the current comparison is for F# 3, but I've benefitted from hyperpolyglot for similar comparisons of other languages.