javascript (was Re: Java > Scala -> new thread: GUI for D)

bearophile bearophileHUGS at lycos.com
Mon Dec 5 00:04:15 PST 2011


Jacob Carlborg:

> I think they're good languages, regardless of the indent-syntax or not. 
> CoffeeScript and Ruby share a couple of language features that I'm not 
> sure if Python does:
> 
> * Instance variables start with @ (shortcut for "this." in CS)
> 
> * Functions can be called without parentheses (they have to take at 
> least one argument in CS)

In Python instance variables start with "self.". And function call requires a (). There is a way to define properties that don't need the () but they can't take arguments.

Bye,
bearophile


More information about the Digitalmars-d mailing list