programming languages syntax differences – (1)

  • coffeescript list = [1, 2, 3, 4]

  • c#                   var list = new List<int>() {1, 2, 3, 4);

  • boo:               list = [1, 2, 3, 4]

  • roy:                let list = (1, 2, 3, 4)

  • F#                   let list = [1; 2; 3; 4]  //semicolons?

  • nemerle:      def numbers = [1, 2, 3];

  • scala:             val list = List(1, 2, 3) 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: