-
Hi @zakirullin , your article is good :)
Btw, this example is some kind wrong as code (though it looks the same in domain-space)
The above code acts like a logic gate of 3 ANDs of 3 expressi…
-
Both guard clauses and constant clauses in patterns require the use of contants where, semantically, it seems like any expression value could be used with a clear meaning. Similarly, a guard clause ca…
-
https://github.com/viniciustferreira/handman_game/blob/573865484f484a50f2271c6201824f4aa79bb6b7/lib/hangman_game.ex#L41C3-L41C3
Acredito que este cara poderia estar em um guard clause.
E você segm…
l3co updated
11 months ago
-
Looks like some of our code uses guard clauses for dependencies passed in to our constructors. I don't really see the benefit of this extra code.
If an instance of the dependency is not provided at …
-
**Note from the teaching team:** This bug was reported during the _Part II (Evaluating Documents)_ stage of the PE. **You may reject this bug if it is not related to the quality of documentation.**
![…
-
We are told to use asserts liberally. However for example, if we have a constructor with 3 parameters, would writing asserts for all boundary values for all parameters be too much? This could easily…
-
`ekaf_lib:common_sync/4` uses `ekaf:pick(Topic)` -> `pg2:get_closest_pid(Topic)` which does not take `custom` strategies into account. This makes `ekaf:produce_sync*` functions work differently for a …
-
By definition, the CC metric does not take into account the nesting levels of the method. For example, consider the following Python source code:
```Java
public int getPayAmount() {
int result …
-
I'll start with an example. Here's a version of the `CopyFile` example function form the [proposal for improved error handling in Go 2.0](https://go.googlesource.com/proposal/+/master/design/go2draft-…
-
**Description:**
$title. What we've implemented doesn't seem to be in-line with the spec.
The spec says
> A variable is the matched variable of a match-stmt if the action-or-expression following …