Quotations Visualizer for F# 1.1.13.8
Quotation Visualizer is my tool that shows visual representation of F# quotations. Stephen noticed (Thanks!) that Quotation Visualizer doesn't compile with the latest version of F# (1.1.13.8), so here is the updated version:
- Download executable (51kB)
- Download sources (77kB)
If you want to know more about this tool, here are links to previous articles about it:
What was wrong?
This tool is written using F# light syntax, which means that you don't have to write all the semicolons and F# compiler uses whitespace to determine end of the blocks (and some other constructs). This compiler option is relatively new so it is still evolving. First issue that I had is with class declaration - the following code is not valid with the latest F# version:
type MyForm = class inherit Form as base // ... end
I used it because it looks more familiar to C# developers :-). Instead of it you have to write the following:
type MyForm = class inherit Form as base // ... end
The second issue was with the pipeline operator which is useful when working with lists (or other sequences). The correct syntax for using pipeline operator (for expressions that are longer than one line) is following:
let filteredList = oldArray |> Array.to_list |> List.map ( fun m -> /* ... */ ) |> List.filter ( fun m -> /* ... */ )
Tags: F# and MSR
(Published: February 14, 2007 23:35)
- RE: Quotations Visualizer for F# 1.1.13.8 by Eber Irigoyen (2/15/2007 5:25:13 PM)
actually that looks more like a Delphi-VBish...
- RE: Quotations Visualizer for F# 1.1.13.8 by Tomas (2/15/2007 5:34:01 PM)
F# isn't C-like language, but Don Syme mentioned at http://cs.hubfs.net (I can't find the dirct link now) that in the future it might be possible to write something like this:
class MyForm()
{
inherit Form as base
// ...
}
Which will make writing classes much more natural for C# developers :-). - RE: Quotations Visualizer for F# 1.1.13.8 by Russel (8/12/2008 2:17:40 PM)
Still doesn't work...
Send comments to this article
Hyperlinks are detected automatically and you can use **bold** and __italic__ to format your comment.



