News for hackers. Stuff that matters.
Re:Performance Analysis of Python's Dict() and {} by mikepurvis on Monday January 22, 2024 @04:21PM (#39095621)
I still miss coffeescript's ability to do dict(@name, @age) though I understand that it creates an unwelcome coupling between the parameter names and their names in the calling scope.

For my part, those names are often the same anyway, though, since the calling scope names are often arbitrary and might as well match the parameter names.

Re:Performance Analysis of Python's Dict() and {} by lights0123 on Monday January 22, 2024 @06:20PM (#39096982)

    {name, age}
does the same in modern JS, assigning the variable to the key with the same name.