[erlang-questions] Re: erlang improvement - objective c (or smalltalk) syntax

Tony Arcieri <>
Thu Jun 4 22:55:48 CEST 2009


On Thu, Jun 4, 2009 at 2:37 PM, Alexander <>wrote:

> > I meant "look at the module to find the function signature".
>

Personally I think it's a lot easier to remember text labels for arguments
than it is specific (and inconsistent) orderings.  Furthermore, it's more
readable.  Consider:

do_something(true, true, 360, 120)

versus:

do_something(scale:true preserve_aspect:true width:360 height:120)

+1 for that. Anyway we should use "man".
>

You should have to consult the documentation as little as possible.
Consulting documentation interrupts your programming workflow.
Programming's a lot easier when you can just program without having to
constantly look up the argument order for a particular function.

Frankly I'm surprised by the amount of resistance I'm seeing here.  Keyword
arguments are wildly popular in languages like Objective C, Python, and Ruby
(although the latter only has faux keyword arguments).  I do believe this is
the first time I've ever seen people opposed to keyword arguments.

-- 
Tony Arcieri
medioh.com


More information about the erlang-questions mailing list