I would like to overload the (/) operator in F# for strings and preserve the meaning for numbers.
/// Combines to path strings
let (/) path1 path2 = Path.Com
Actually you can.
Try this:
open System.IO
type DivExtension = DivExtension with
static member inline (=>) (x , DivExtension) = fun y -> x / y
static member (=>) (x , DivExtension) = fun y -> Path.Combine(x, y)
static member (=>) (x:DivExtension, DivExtension) = fun DivExtension -> x
let inline (/) x y = (x => DivExtension) y