DEV Community

Cover image for should i analyse C# or .NET?

should i analyse C# or .NET?

Graham Dyson on April 26, 2020

edit: Unlike the conclusion of the post below, I based the analyzer on C# CaaS and not .NET IL. Its now available to use https://devsnicket.com/eun...
Collapse
 
xdadaveshaw profile image
Dave Shaw

Would using .NET make it easier to analyse F# code in the future? Although F# has FCS where you can analyse the source code.

Collapse
 
grahamdyson profile image
Graham Dyson

There's potential to reuse non-C# specific parts of .NET analysis, share and build on them to create a F# analyzer. For the analysis to look like the source F# there would need to be specific behaviour for things like Records and the nested types generated for lambda expressions.