Hacker News new | past | comments | ask | show | jobs | submit login

>> Lobster: v := [ 1, 0, 0 ]:xyz >> C#: var v = new xyz(1, 0, 0); you'd actually have to define the constructor in C# to be able to do this

well, not exactly. You could do: >> var v = new xyz{x:1, y:0, z:0};




Also in C#: | var a = 1; | vs | dynamic a = 1; | I think there should be a version number next to language name to avoid false impression.


You are both right. My use of C# is deliberately basic to give users of other languages a good chance to follow it too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: