HackerTrans
トップ新着トレンドコメント過去質問紹介求人

agons

no profile record

コメント

agons
·先月·議論
The first use case that comes to mind is if you want a DSL to build expressions that are evaluated later in some different context e.g. when using `polars`:

```python df.filter( pl.col("foo") == pl.col("bar"), ) ```

Sqlalchemy does something equivalent too, and I'm sure there are many others.
agons
·4 か月前·議論
I can imagine a pipeline where intermediate stages have been inserted to have some side effect, like debug logging all data passing through.
agons
·5 か月前·議論
The problem comes when there are lucrative odds for some unlikely scenario, which you can influence into realisation, and that outcome might be counter to the company's goals (i.e. sabotage)
agons
·10 か月前·議論
Huh.
agons
·11 か月前·議論
Is there a reason the Zig compiler can't perform type-narrowing for `u` within the `U::A(_) | U::B(_)` "guard", rendering just the set of 2 cases entirely necessary and sufficient (obviating the need for any of the solutions in the blog post)?

I'm not familiar with Zig, but also ready to find out I'm not as familiar with type systems as I thought.
agons
·昨年·議論
It gets worse the further you go, this was where I had to bail:

> the format is much favored by AI frameworks such as TensorFlow and PyCharm.
agons
·昨年·議論
Could mean "appear" as in "show up"