3 ms·
Go has iterators, had them for a while now. To delete an element from a slice you can use `slices.Delete`. >3) To make matters worse, at work we have a linter
by Zababa 11mo ago
Go has iterators, had them for a while now. To delete an element from a slice you can use `slices.Delete`.
>3) To make matters worse, at work we have a linter that forbids merging a branch if you a) don't do if err != nil for every case b) have >20 for & if/else clauses. This makes you split functions in many pieces, turning your code into enterprise Java.
That is not a problem with Go.