Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
moron4hire
on June 19, 2013
|
parent
|
context
|
favorite
| on:
Lobster, a game programming language
>> 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};
_progger_
on June 19, 2013
[–]
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.
Aardappel
on June 19, 2013
|
parent
[–]
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:
well, not exactly. You could do: >> var v = new xyz{x:1, y:0, z:0};