News for hackers. Stuff that matters.
Re:Why is Common Lisp not the most popular programming langu... by pierrebai on Wednesday February 14, 2024 @06:38PM (#39377134)
Of course, Python would have been way more awesome if they did not reject the much more reader-friendly and idiomatic:

  squared_div_by_3 = [
      for i in range(10):
          if i % 3 == 0:
              i**2
  ]
That is, just transforming the normal for loop and if into a list comprehension by surrounding it with brackets. It would even preserve the friendly forced blocking and indentation. Can you imagine?
Re:Why is Common Lisp not the most popular programming langu... by esafak on Thursday February 15, 2024 @12:44AM (#39379531)
It's inspired by set-builder notation: https://en.wikipedia.org/wiki/Set-builder_notation
Re:Why is Common Lisp not the most popular programming langu... by xigoi on Thursday February 15, 2024 @03:21AM (#39380302)
Nim has a `collect` macro which works exactly like this.