-
The convention came about in this clj-kondo thread:
https://github.com/clj-kondo/clj-kondo/issues/241
Essentially the conclusion is to protect namespace declarations that are side-effecting from…
-
Writing a driver like `:vertica` for example requires `defmethod`s for like 8 different namespaces... it would be nice for everything to be in one place using Potemkin
-
## Environment data
- Language Server version: 2022.9.41 (pyright 59bdc42e)
- OS and version: macOS 12.5.1
- Python version (& distribution if applicable, e.g. Anaconda): 3.9.12 (mi…
-
Would it be in scope of multimethod to fallback to one of the methods (possibly explicitly marked) in case of a dispatch error?
It would help to maintain backward compatibility for our codebase for…
-
Would it be possible to implement multimethods dispatching on `typing.Literal`?
-
It's at least somewhat common to have multimethods where not all of the args are used in every case. For example:
```
(defmulti display (fn [which-display string-to-show]
which-di…
-
```
def h(a is int, b is int): return a + b # compiles
def h(a is str, b is str) = a + b # fine
def g(a is int, b is int) -> int: return a + b # raises error
def g(a is str, b is str) -> str = …
-
I was attempting to capture a per-test start and end time, so that I could refer to them during reporting. More broadly, I was attempting to augment the normal failure report with any (postgres) log …
-
```python
def test(a:int, b:list[int]):
print "b of list[int] called"
def test(a:int, b:int):
print "b of int called"
test(1, [2])
test(1, 2)
```
error: expected function input t…
-
I've been thinking a lot about an alternative to multimethods that use patterns in the definition and partial matching in dispatch. I imagine two kinds of this to be useful:
1. A single dispatch on…
den1k updated
3 years ago