Eldritch Conundrum

Results 16 comments of Eldritch Conundrum

I just had the exact same problem of expecting group_by to work like in most other languages, and I think I have an idea: the current **group_by** function should be...

Gotta implement actual replacement of tokens in the code... Then the #define can always be deleted.

Evaluating and removing defines could yield a smaller output.

For the first point, wouldn't it be sufficient to use the existing `--format indented` flag?

Why do we want these three functions to have the same name after renaming?

I think we could go further. If I understand correctly, having 3 different names could lead to a valid minification, if the minifier was to support it. More precisely, maybe...

I too got bitten by this pitfall of disjunctive patterns today. When reading the redundant line of code in isolation, it's easy to get mislead into thinking that it must...

For most formats, newlines and indentation can be preserved in the source code of the surrounding language, but are not preserved at run-time, the shader source itself is fully compressed....

Forcing inlining can easily cause bugs, because it bypasses all the verifications that inlining the function will behave correctly, that are described here: https://github.com/laurentlb/shader-minifier/blob/3e25bdf74b9db57fe4a0328138b2cbca3fe303d9/src/inlining.fs#L172-L197

> Ah, so perhaps this is user-error as I did not realize `i_` overrides this particular verification (I can't think of a legitimate reason for allowing it). Sometimes `i_` is...