Useless instructions: Difference between revisions
Realize in F#
m (→{{header|jq}}: format) |
(Realize in F#) |
||
Line 119:
</pre>
=={{header|F_Sharp|F#}}==
<lang fsharp>
printfn "%s" ("Nigel "^"Galloway")
printfn "%s" ("Nigel "+"Galloway")
</lang>
{{out}}
<pre>
main.fs(1,23): warning FS0062: This construct is for ML compatibility. Consider using the '+' operator instead. This may require a type annotation to indicate it acts on strings. This message can be disabled using '--nowarn:62' or '#nowarn "62"'.
> mono main.exe
Nigel Galloway
Nigel Galloway
</pre>
=={{header|Go}}==
I can't recall any language features or standard library methods in Go which are completely redundant either by design or due to subsequent developments. Moreover, the compiler does a lot to prevent unintentional redundancy by flagging unused packages, unused variables and unreachable code.
|