Comment

Comment by benkuykendall

Yeah. Python has the functional programming features I expect of any modern language. However, I feel that Python has a lot of unneeded syntax. I always prefer apply() over * and map() and filter() over list comprehensions.

    func(*args)
    apply(func, args)

    [func(a) for a in collection]
    map(func, collection)

    [a for a in collection if func(a)]
    filter(func, collection)
I don't see why people use all of this special syntax.
parent benkuykendall 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton