ねまーる

http://nemerle.org/

  • 「 class _{static void Main(){}} 」要らず
  • セミコロンで文を区切るが末尾には不要(PascalSmalltalk風)
using Nemerle.IO; print("Hello, world!")
  • リスト操作・内包表記
  • 簡潔なλ
[1,2,3,4,5].Filter(fun(x){x%2>0}).Map(fun(x){x*x}).FoldLeft(0,fun(x,y){x+y})
/* ↓ */
$[x*x|x in [1,2,3,4,5],x%2>0].FoldLeft(0,(x,y)=>{x+y})
/* ↓ */
$[x*x|x in [1..5],x%2>0].FoldLeft(0,_+_)
  • 埋め込み文字列
System.Console.Write($"$(mutable i=2;i**2)$i") //=> 42

などなどC#より遙かにゴルフ向きな作り。.NETの勉強がてらしばらく触る。