Hi,

When the last argument is a function, it's sometimes nice to use the back pipe. It looks a bit similar to Ruby blocks:

1
2
3
Array.init 10 <| fun x ->
    if x < 5 then 0
    else x

Laurent

By on 10/2/2008 1:59 AM ()

Hi,

I find myself using the 'back pipe' all the time as I hate parens hunting too. More than one nested parenthesis and I usually find all meaning drains away and with it all enthusiasm.

Unfortunately I find the backpipe visually noisy as well and dearly wish Unicode operators were supported again. I really miss the ability to define «, ± and ∙ operators (I used « for back-pipe.) I'd love to hear why unicode operators were banned from F#. I hope we see them again soon.

regards,

Danny

By on 10/1/2008 3:57 PM ()

I prefer the first version. However, I still have the hope that the F# team will remove the requirement ("sanity check") for the outer parens (see [link:cs.hubfs.net]).

This thread might also be interesting to you:
[link:cs.hubfs.net]

By on 9/30/2008 4:44 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper