cloudroutine | 9 years ago | on: A Peek into F# 4.1
cloudroutine's comments
cloudroutine | 9 years ago | on: A Peek into F# 4.1
type S = struct val X:int end
type [<Struct>] R = val Y:int
it's not new syntax as much as an extension of the contexts where the construct is applicable.The examples in the blog post aren't in accordance with the RFC as far as type signatures are concerned [1] The tuple decomposition is mixed in with the type sig.
let getPointFromOffset (point: struct (x, y)) (offset: struct (dx, dy)) = ...
^ is totally wrong let getPointFromOffset (struct(x, y) as point) (struct (dx, dy) as offset) = ...
or let getPointFromOffset ((x, y): struct(int * int)) ((dx, dy): struct(int * int)) = ...
use the proper syntax, which is consistent with the rest of F#[1] https://github.com/fsharp/FSharpLangDesign/blob/master/RFCs/...
cloudroutine | 10 years ago | on: Ionide – F# Dev Tools for the Atom Editor
Intellifactory's Websharper projects are well supported and regularly updated, you could try Websharper.Warp[2] in lieu of FunScript.
cloudroutine | 10 years ago | on: Ionide – F# Dev Tools for the Atom Editor
Active Patterns are a pretty cool F# feature that OCaml doesn't have. You can do something that's effectively the same with OCaml macros, but those are a lot more tedious.
The F# intellisense and code completion are great productivity enhancers, especially when it comes to working with unfamiliar libraries.
My biggest hurdle in transitioning from OCaml to F# was learning my way around the .Net ecosystem, so it was still a relatively minor one.
If you decide to get into F# and have any questions about it someone on the #fsharp channel on the Functional Programming Slack[1] usually has an answer.
[1] http://fpchat.com/ <- sign up here, invites usually arrive within 24hrs
cloudroutine | 10 years ago | on: Ionide – F# Dev Tools for the Atom Editor
We definitely support Windows, I'm running it on Windows 10 right now ;)
cloudroutine | 10 years ago | on: Ionide – F# Dev Tools for the Atom Editor
cloudroutine | 10 years ago | on: Ionide – F# Dev Tools for the Atom Editor
Ionide definitely won't be compatible out the gate, but if the API isn't too different we might be able to reuse some of what we've already done.
The best case scenario would be the if plugin system supports dlls so that we could use the FSharp.Compiler.Service directly[2]
[1] http://visualstudio.uservoice.com/forums/293070-visual-studi...
cloudroutine | 10 years ago | on: Ionide – F# Dev Tools for the Atom Editor
cloudroutine | 10 years ago | on: Ionide – F# Dev Tools for the Atom Editor
I definitely prefer Atom+Ionide when I want to try something out quickly or experiment. Opening VS and creating a new project just to write a simple fsx script seems excessive to me.
Although, most of the time I'm running them simultaneously.