News for hackers. Stuff that matters.
Re:PRQL – A proposal for a better SQL by tester756 on Monday January 24, 2022 @04:24PM (#30064248)
I don't understand why do you think about it this way

C#'s LINQ (really powerful tool similar to SQL) works the same way

look:

var list = new List<int>{1,2,3}

var extracted = list

.............................Where(x => x > 1)

.............................Select(x => $"my number: {x})

.............................ToList();

or

var extarcted =

........................from x in list

........................where x > 1

........................select $"my number: {x};

Re:PRQL – A proposal for a better SQL by ziml77 on Monday January 24, 2022 @10:50PM (#30067735)
Technically to be equivalent you need to wrap the second one in parentheses so you can use ToList() on it. Unfortunately a bit ugly. I'm not sure why they didn't add one more keyword to handle pipelining into other functions. Something like "feed", "into", or "pipe". Or just pluck the |> operator from F#.