开发者

Refactoring Browser

开发者 https://www.devze.com 2023-03-04 15:15 出处:网络
Ok, a while ago I read about a Re-factoring Browser for I think, Lisp (or maybe it was smalltalk). This was a tool to help with re-factoring.

Ok, a while ago I read about a Re-factoring Browser for I think, Lisp (or maybe it was smalltalk). This was a tool to help with re-factoring. I was wondering if anyone knows of a free one for F#? (seems reasonable a functional languages shou开发者_Python百科ld be 'nice' for that kind of thing)


Yes, in principle, functional languages are great for refactoring. As far as I know, the only tool that implements some support for refactoring is this project:

  • F# Refactor at CodePlex (and downloads at Visual Studio Gallery)

Currently, it supports only a few basic things, but it is using a good approach (using the F# source code to do the difficult work such as type-checking), so I tihnk it is a promising project.

Anyway, many refactorings in F# don't even need a tool support - often cutting code & pasting it into a different context is all you need. For example, I often start with just writing let declarations and then turn them into a type by indenting them and enclosing them in a type definition (as local functions).

0

精彩评论

暂无评论...
验证码 换一张
取 消