Re:Ask HN: Why use semicolons to terminate statements in mod...
by sc on Monday November 24, 2008 @08:13AM
(#374754)
JavaScript can just as easily attain this way of using named parameters:
win = Window.new({title: "A new window",
foreground: Red,
background: White,
menuBar: [fileMenu, viewMenu, helpMenu]});
However, I can't think of a direct parallel to your example above. It looks handy. What API/language are you alluding to?
I guess the Pythonic way would be something like:
But I disgress. :^)