immutabletest

joined 1 year ago
[–] immutabletest 4 points 7 months ago* (last edited 7 months ago) (1 children)

This is a Typescript type-level computation (which is Turing-complete AFAIK). However this kind of trickery is usually done for fun and to explore how much could be achieved just on the compile step.

[–] immutabletest 1 points 7 months ago (1 children)

Something similar to VSCode's ability to open searches in an editor? Looks like you can save and reopen them too.

[–] immutabletest 4 points 1 year ago* (last edited 1 year ago)

LINQ looks great with the query syntax:

var productsByCategory =
    from p in dbContext.Products
    where p.Price < 50
    group by p.Category.Id
    select p;