3 ms·
Sounds like Platonic Forms[1], but for applied computer science. Skimming Naur's essay, the solution to this problem seems like it could involve building highe
by caseymarquis 7y ago
Sounds like Platonic Forms[1], but for applied computer science.
Skimming Naur's essay, the solution to this problem seems like it could involve building higher level code analysis into the language itself (making the linter part of the language and development environment).
Microsoft is doing this to some degree with compiler extensions on the .NET platform [2]. When used creatively, you can effectively deploy a custom linter with your libraries which emits compiler errors and warnings based on how the user is doing things (ie I think you're trying to do X, have you considered using this new functionality instead?). However, I think it is interesting to consider what it would look like if statically typed code and style analysis/suggestions were a first class citizen in a programming language, not just an add on for advanced users. If this exists now, I'd love to check it out.
It's too bad we won't all live to see the inevitable improvement in computational notation over the next few hundred years. Time to binge watch some Alan Kay talks and try to imagine it.
[1] https://en.wikipedia.org/wiki/Theory_of_forms https://en.wikipedia.org/wiki/Theory_of_forms
[2] https://docs.microsoft.com/en-us/visualstudio/code-quality/roslyn-analyzers-overview?view=vs-2019 https://docs.microsoft.com/en-us/visualstudio/code-quality/r...