VanKrock

Results 11 comments of VanKrock

It's will work if I call my method twice?

@jayaranigarg It's really to make instance of test class as part of ITestMethod? For example `object TestClassInstance`? It's well be cool for initializing test class by test method attributes.

> Yes but this is still readable code. Instead of adding another type of function. > ```v > // vfmt off > fn main() { > x := [1, 2,...

> I would argue for splitting this into multiple parts. Chaining like this reduces the readability quite a lot if you ask me. > > ```v > fn main() {...

capturing variables? May be "auto" capturing is better ```v purpose_templates := purposes .filter(c -> !c.is_deleted) .filter(c -> !c.is_archived) .filter(c -> !c.client.is_deleted) .filter([client_codes, client_ids] c -> client_codes.contains(c.client.client_code) || client_ids.contains(c.client.id)) .map(c ->...

> Both ideas have been considered and rejected quite a while ago. > > Long chains of methods may "look cool", but they are a nightmare to debug if something...

Long chains is another problem. I can write long chains in v right now. Current problem is function declaration can be simplified for some situations, full declaration can be redundant

I'm just expressing my opinion and nothing more, I don't demand this feature, it just seems convenient to me. Lambdas is like Apple technology, many consider it overrated, and many...

So v already has lambdas ```v fn main() { values := [1, 2, 3]; filtered:= values.filter(|x| x == 1) println(filtered) } ``` but it looks alien it is possible to...